Discussions
Can't we add more than one line on Page init function?
Hi,
I couldn't find a way of adding multiple line items on new Quote with beforeload or Page Init function. I do not want to use group items for some reason.
With the following code I could only add one item. If I repeat the code for more items, the script only adds the last one:mad::
nlapiSelectNewLineItem('item');
nlapiSetCurrentLineItemValue('item', 'item', 3265);
nlapiCommitLineItem('item');
Can this be done in NetSuite? Any help is appreciated:)
Thanks,
Srujana.