BI Publisher (MOSC)

MOSC Banner

Conditional format color based on instr

edited Oct 28, 2016 5:24PM in BI Publisher (MOSC) 3 commentsAnswered ✓

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?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center