Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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({