Repeated list of a single element

Hello everyone.

I need to print barcode labels on a printer.

I have created a "PDF" file.
The problem is that I want to print a certain number of each barcode.
For example, code 10078 prints 10 labels, code 28004 prints 5, etc.
I have a table with the barcode and the number of labels.
As a solution, it occurred to me to create a LIST with each code and repeat that code as many times as necessary.

How can I create in the PDF a list of an element that is repeated as many times as I want?

Thanks for your cooperation.

0 6 190
6 REPLIES 6

Assume you have some table that has at least as many rows as the max number of repeats of a single barcode. That table really doesn't matter, just the number of rows. In your PDF template, you can do something like this:

<<START: TOP( table[id] , LOOKUP( thisrow.barcode , barcode_count_table , barcode , count ) )>>
<<thisrow.[barcode]>>
<<END>>

Andres_Belmonte_0-1701629430576.png

Only 1 tag appears...

Andres_Belmonte_1-1701629636008.png

This is the table. I use 1 row for each label

How did you set up your template?

For now, I've only put the code you told me...
I don't know yet how I'm going to do it.
I'm trying things.

My "code" was not a full solution, it was a technique to be implemented within the full solution. You perhaps misunderstood something. If you share your template, I could hopefully see where you have misunderstood.

Top Labels in this Space