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
nlapiSearchRecord JS_EXCEPTION error
Hi,
I use the following script on a custom record "save record" function for the online form:
var so_number = nlapiGetFieldValue('custrecord_return_p_order_no_txt'); var filters = new Array(); filters[0] = new nlobjSearchFilter( 'tranid', null, 'is', so_number ); var columns = new Array(); columns[0] = new nlobjSearchColumn('internalid',null,null); var searchresults = nlapiSearchRecord( 'salesorder', null, filters, columns ); alert(searchresults); return true; Where 'custrecord_return_p_order_no_txt' is a text box field id in the form.
but an unaccepted error occurs (JS_EXCEPTION) and the form not submitted
What I tried to do in this segment of code is: add a text box to insert sales order number, when press submit, alert the internal id for that SO
0