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.
Before Load with Transaction Columns...
I have a custom transaction column field of type text with store value = false. I'd like to populate this field in each row when the user views or edits the form. The data is for display purposes only and determined on load.
I have tried the following using setLineItemValue:
for (var i = 1; i <= nlapiGetLineItemCount('item'); i++) { nlapiSetLineItemValue('item','custcol_notstored',i,'test'); }And also tried using the sublist object:
var itemSubList = form.getSubList('item'); for (var i = 1; i <= nlapiGetLineItemCount('item'); i++) { itemSubList.setLineItemValue('custcol_notstored',i,'test'); }Both with populate a value in custcol_notstored, yet both methods hide data in 5 out of 10 other custom column fields on the form! The same fields are targeted each time and are of various data types.
0