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
Call to nlobjField.getSelectOptions wiping out the list of options!
My multiselect field contains 6 fields that start with 'PC ' and 3 that start with 'OPS ' and I want to find all of these among a list of about 50. since there does not seem to be a way to do an 'or' search, I do two searches, however the results only return the first search:
var fld = form.getField('mymultiselectfield'); var ops = fld.getSelectOptions('PC ','startswith'); var ops2 = fld.getSelectOptions('OPS ','startswith'); throw 'ops: '+ops.length+'; ops2: '+ops2.length; Result: ops: 6; ops2: 0
Flip the search around:
var fld = form.getField('mymultiselectfield'); var ops2 = fld.getSelectOptions('OPS ','startswith'); var ops = fld.getSelectOptions('PC ','startswith'); throw 'ops: '+ops.length+'; ops2: '+ops2.length; 0