Create multiple documents - range

Hello on the data I will have only something like this:
image
and from the range of numbers 100217734992 - 100217735029
I need to create labels with the same PO# and P/T but different UPC.
UPC will be second number from the range - For example:
100217734992
100217734993
100217734994
100217734995
100217734996
100217734997

How I can create multiple labels in that case with UPC from the range - 37 labels for that example?

Are your label to be in a single column?

Hi, You are asking about the layout? That will be 2 columns 6 labels on the one site and 6 on the other site. Thank You for your help

That is 1 way to do it. You can start from it and adapt. Hope that helps.

Untitled.OL-datamapper (4.0 KB) Untitled.OL-template (9.4 KB)

Thank You - very good example

Hi, I have one more question. I’ve created some labels, but there seems to be an issue where they are always appearing on the right side, even when the labels are not supposed to be created. Additionally, I implemented a condition that works fine when somebody requests just one label. However, when multiple labels are requested, for example, 7 labels, it always prints 8 labels instead. I’m unsure how to fix this problem. Can you please help me with resolving this? Your assistance would be highly appreciated.

Package_ICC.OL-package (83.6 KB)

Problem is with your Conditionnal script:

image

Using if (record.UPCs.UPC_Right) points to nothing and even if it was pointing to something, you would always look at the first item of your detail table.

Here’s how to fix it:

image

P.S. you can remove the logger() line.

1 Like