Conditional format color based on instr
Hello,
I have to set a conditional visual attribute for a field when the field content begins with an astrix (*). I tried the following but I get an error.
<?FIELD_NAME?><?if:instr(FIELD_NAME,'*')=1?><?attribute@incontext:background-color;'Gray'?><?attribute@incontext:color;'White'?><?end if?>
Error while trying to Preview the template:
Caused by: org.xml.sax.SAXException: Parse Error in instr function.
oracle.xdo11g.xpath.XPathException: Parse Error in instr function.
at oracle.xdo11g.xslt.XSLProcessor.reportException
Can you spot an error in my syntax above or Is the instr function not supported for conditional formatting?