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
Select item line location based on user
I am trying to use the client side pageInit event to autoset the Location field for all items on an Item Fulfillment based on the logged in user. So wrapped in a conditional for the correct user I have:
for (var i = 1; i <= nlapiGetLineItemCount('item'); i++) { alert('Current Location: '+nlapiGetLineItemValue('item', 'location', i)); nlapiSetLineItemValue('item', 'location', i, 1); alert('Current Location: '+nlapiGetLineItemValue(item', 'location', i)); } The alerts show me the empty field in both cases - so the attempt to set the location is not working - but it is also not throwing an error. Any one have experience with this or any suggestions? Thanks.
0