Unifier (MOSC)

MOSC Banner

(RTF Template) Select an image based on an XML substring condition

edited Aug 6, 2015 10:05AM in Unifier (MOSC) 4 commentsAnswered

I am working to update an existing Unifier Custom Report with a dynamic logo.  I have two separate .png files and nine conditions to apply them to.

The following works fine for text distinctions:

<?template:LogoSelect?>

   <?xdofx: if substr(XML_ELEMENT_NAME,1,5)=’cond1’ then ’result1’ end if?>

   <?xdofx: if substr(XML_ELEMENT_NAME,1,5)=’cond2’ then ’result1’ end if?>

   <?xdofx: if substr(XML_ELEMENT_NAME,1,5)=’cond3’ then ‘result2’ end if?>

   <?xdofx: if substr(XML_ELEMENT_NAME,1,5)=’cond4’ then ‘result3’ end if?>

   <?xdofx: if substr(XML_ELEMENT_NAME,1,5)=’cond5’ then ‘result4’ end if?>

   <?xdofx: if substr(XML_ELEMENT_NAME,1,5)=’cond6’ then ‘result5’ end if?>

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