BIP 11.1.1.7.0: Using instr to conditionally display a field in RTF template
The requirement is that if the field say CUSTOMER_CODE (in the data xml) has value 'ABCDEF001', I want to display another field SALES_VALUE only if the value of CUSTOMER_CODE contains a string 'ABCD'.
Here's how I am trying to do this:
<?if:instr(CUSTOMER_CODE,'ABCD')>'0'?> <?SALES_VALUE?> <?end if?>
This results in an error :
Caused by: oracle.xdo11g.xpath.XPathException: Parse Error in instr function.
at oracle.xdo11g.xslt.XSLProcessor.reportException
Any pointers appreciated.
Thanks,
Manish