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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
nlapiCommitLineItem works only for the first line!!
Hi there!
I have a client script that needs to select each item line and commit it - it works but only for the first line.
My code:
for (i=1;i<=nlapiGetLineItemCount('item');i++)
{
nlapiSelectLineItem('item' , i);
nlapiCommitLineItem('item');
}
The purpose of the code is to select each line, run the script in the validate line function, commit the line and move on to the next line.
Any help would be much appreciated!!
Regards... Srilatha
0