Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
PDF template create loop with variable values
Hello,
I have struggled with an issue when creating a <#list> tag.
I like to make a loop that runs some many times what item.quantity field says.
If i set variable as number 3 (below) it works.
This works :
<#list record.item as item>
<#assign itemQty = 3>
<#list 1..itemQty as x>
<#assign rowNum = rowNum +1>
i can't set the value from the item.quantity field.
<#list record.item as item>
<#assign itemQty = ${item.quantity?number}
<#list 1..itemQty as x>
<#assign rowNum = rowNum +1>
With this code i'm just having the error that expecting a number.
0