Skip to Content
0
Former Member
Oct 31, 2005 at 05:11 AM

Nested loop in smartforms

50 Views

Hi gurus,

I have a issue with nested looping. Based on the quantity in the order item I want to print the number of labels at item level.

i.e Order Item qty

111 10 2 ( I need 2 labels )

111 20 3 ( I need 3 labels )

112 10 5 ( I need 5 labels )

So under the order items loop, I created another loop and and added a program line and tried to manage the 2nd loop by a count. But I failed, I just couldn't get the loop working properly.

How can I control the second loop just by a count and exit it once it reaches a particular value.

Thanks and regards

Dhanushka.