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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Cannot update Location on Fulfullment
Hi all,
I have a 'pageInit' client script running when you at first create an Item Fulfillment from the 'fulfill' button on a Sales Order.
The Script starts, and I need it to manually set the location of each item in the list, the code looks as below.
for(var i=1;i<=nlapiGetLineItemCount('item');i++) { nlapiSelectLineItem('item',i); postLog('Location for line '+i+' is '+nlapiGetLineItemValue('item','location')); nlapiSetCurrentLineItemValue('item','location',100); postLog('New Location for line '+i+' is '+nlapiGetLineItemValue('item','location')); //done nlapiCommitLineItem('item'); } The log lines I get are:
Location for line 1 is null TypeError: fld is undefined message=fld is undefined
0