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
nlapiGetLineItemText
Hi All,
I am trying to get the text from a select field when i save a sales order and strangely the api doesnt seem to be working. I have a custom column field which is a list record. A list of custom records are sourced into this field when another line item field is selected.
when the order is saved i am running the following code: -
for (var i=1;i <= nlapiGetLineItemCount('item');i++) { alert(nlapiGetLineItemText('item','custcol_tariff_package',i)); alert(nlapiGetLineItemValue('item','custcol_tariff_package',i)); } When i save the sales order with one line item on it the first alert displays nothing, the second displays "90" which is the id of the custom record selected in that field.
0