BI Publisher (MOSC)

MOSC Banner

Calling sub-template based on some condition

edited Sep 11, 2013 5:35AM in BI Publisher (MOSC) 2 commentsAnswered
Hi All,

Can anyone help me out how to call a sub-template based on a condition.

I have a requirement like I have some text that is in a sub-template and based on certain condition I have to select the text from the sub-template and have to concatenate the same with some plain text and some field values in my master template. I have the following code but its not working  :-

<?xdofx:if instr(PAYINFO_OBJ,'cc') then Call :B1||' Visa xxxx-'||DEBIT_NUM||' exp '||substr(DEBIT_EXP,1,2)||'/'||substr(DEBIT_EXP,3,4)
else
if instr(PAYINFO_OBJ,'dd') then CALL :B||BRANCH_NO||' XXX '||DEBIT_NUM

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