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.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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