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