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!
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