Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Continueing a for loop after a record save
So I am trying to print a packing slip qty box label for each line on a Item FulFilment. I have a working button that calls the client script but it always exits the 2nd for loop after one pass. below is a snippet of the code.
for(var i = 0; i<lineCounts; i++)
{
if(i == 0)
{
var message3 = "Opening Multiple Label pdf windows. Please click ok and wait for confirmation message.";
alert(message3)
}
var currentItem = recIf.getSublistValue({
sublistId: 'item',
fieldId: 'item',
line : i
});
var recItem = r.load({
type: r.Type.ASSEMBLY_ITEM,
id: currentItem,
isDynamic:true
});
var customerPartSearch = s.load({