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.
Trying to get values from a scripted search
All,
I'm attempting to do a server side script that will perform a search. Once done, I would like to take a value from the search results and pass it into a field on a record.
The search works great. But no matter what I try to get the field values, I keep getting the following error:
[CODE]system UNEXPECTED_ERROR 5/17/2009 23:45:33.274
Java class "[L.nlobjSearchResult;" has no public instance field or method named "getValue". (debugger$debugger.user#21)[/CODE]
[PHP]
var vtrenzId = nlapiLookupField('contact','contact','custentity_ima_id');
var arrSearchFilter = new Array();
arrSearchFilter[0] = new nlobjSearchFilter('custrecord_vtrenzid',null,'contains',vtrenzId);
var arrSearchColumn = new Array();
I'm attempting to do a server side script that will perform a search. Once done, I would like to take a value from the search results and pass it into a field on a record.
The search works great. But no matter what I try to get the field values, I keep getting the following error:
[CODE]system UNEXPECTED_ERROR 5/17/2009 23:45:33.274
Java class "[L.nlobjSearchResult;" has no public instance field or method named "getValue". (debugger$debugger.user#21)[/CODE]
[PHP]
var vtrenzId = nlapiLookupField('contact','contact','custentity_ima_id');
var arrSearchFilter = new Array();
arrSearchFilter[0] = new nlobjSearchFilter('custrecord_vtrenzid',null,'contains',vtrenzId);
var arrSearchColumn = new Array();
0