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!
Search active items
Hello,
I'm working on Delphi XE3 and I'm trying to search an ACTIVE item thanks to his display name.
I wrote this but it doesn't work.
search := ItemSearchAdvanced.Create; criteres := ItemSearch2.Create; criteresBasic := ItemSearchBasic.Create; colCritereString := SearchStringField.Create; colCritereString.searchValue := displayname; colCritereString.&operator := SearchStringFieldOperator.is_; criteresBasic.displayName := colCritereString; criteresBin := BinSearchBasic.Create; falseBool:= SearchBooleanField.Create; falseBool.searchValue := False; criteresBin.inactive := falseBool; criteres.basic := criteresBasic; criteres.binNumberJoin := criteresBin; search.criteria := criteres; rep := NetSuiteWS.search(search);
The search is executed but I get active and inactive items...
Any hints?
Tagged:
0