Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
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({