Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Searching Checkbox fields?
I'm having a problem running a search that includes filters on fields that are checkboxes. It looks to me that the search is completely ignoring the checkbox filters. Example:
function testPortlet(portlet) {
portlet.setTitle('title');
var filters = new Array();
filters[0] = new nlobjSearchFilter( 'name', null, 'equalTo', '11580', null);
filters[1] = new nlobjSearchFilter('memorized',null,'is','Yes',null);
filters[2] = new nlobjSearchFilter('mainline',null,'is','Yes',null);
var columns = new Array();
columns[0] = new nlobjSearchColumn('internalid');
columns[1] = new nlobjSearchColumn('memorized');
columns[2] = new nlobjSearchColumn('mainline');
var searchresults = nlapiSearchRecord('cashsale', null, filters, columns);
portlet.writeLine("Results: "+searchresults.length,null,0);
for ( var i = 0; searchresults != null && i < searchresults.length; i++ )