I'm looking to have a Saved Search formula that would result in a Color being shown if it is part of an item description - possible to do something like:
CASE WHEN {item.description} contains (not sure the sql equivalent for contains is) ("blue", "red", "yellow") THEN show the color that the description contains END
b
battk
06/07/2019, 5:56 PM
Im generally bad at formulas, so I say brute force it
battk
06/07/2019, 5:56 PM
CASE WHEN INSTR({item.description}, 'blue') > 0 THEN 'blue' WHEN INSTR({item.description}, 'red') > 0 THEN 'red' WHEN INSTR({item.description}, 'yellow') > 0 THEN 'yellow' END
battk
06/07/2019, 5:56 PM
hopefully your descriptions don't contain multiple colors
s
scottvonduhn
06/07/2019, 6:01 PM
Do you want to display the color name, or actually style the search results based on the color? If it's the latter, I saw this article once, though never had the need for it myself: http://www.melioza.com/2016/08/common-html-code-to-format-netsuite.html
The basic idea is wrapping the column in a DIV or SPAN tag so you can apply styles to it.