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!
DECODE with dropdown list field
Hello,
I'm trying to create a saved search for kits to display "Please Disallow BO" if one of members out of stock behavior is "Disallow BO" - based on field with id 'custitem_bo_behavior' , so I use DECODE in saved search results (Formula (Text)) as the following:
DECODE({memberitem.custitem_bo_behavior}, 'Disallow BO', 'Please Disallow BO', 'Keep as it is')
but DECODE returns 2 rows for kit if members mixed with Allow and Disallow (one with 'Please Disallow BO' and the other with 'Keep as it is')
Shouldn't decode return one value only? (Compares expr to each search value one by one. If expr is equal to a search, the corresponding result is returned. If no match is found, default is returned.)
Tagged:
0