Home » Fusion Middleware & Colab Suite » Business Intelligence » If then else statement in XML Publisher
If then else statement in XML Publisher [message #448507] Tue, 23 March 2010 17:43 Go to next message
oraclefaqs1
Messages: 23
Registered: October 2008
Location: SC
Junior Member

Hi all,

In the below only the first condition is working (I tested by flipping the conditions)

<?if:CS_GRAND_TOTAL_INV!=''?><?CS_GRAND_TOTAL_INV?><?endif?><?if:CS_GRAND_TOTAL_MTL!=''?><?CS_GRAND_TOTAL_MTL?><?end if?>

Can anyone please help me, and also how can we write IF-THEN-ELSE in XML, I think that wud really solve my problem.

Thanks,

Re: If then else statement in XML Publisher [message #450425 is a reply to message #448507] Wed, 07 April 2010 03:02 Go to previous messageGo to next message
AlexAnd
Messages: 18
Registered: March 2010
Junior Member
may be you have no data for second condition?

try
xdoxslt:ifelse(boolean expression ,true result, false result)

[Updated on: Wed, 07 April 2010 03:08]

Report message to a moderator

Re: If then else statement in XML Publisher [message #450556 is a reply to message #450425] Wed, 07 April 2010 16:48 Go to previous messageGo to next message
oraclefaqs1
Messages: 23
Registered: October 2008
Location: SC
Junior Member

Alex,

Thanks for your reply. Anyhow the below worked

<?xdofx:if CF_ORG ='' then CF_ORG else ORGANIZATION_CODE end if?>

I read some XML document and got it.

icon7.gif  Re: If then else statement in XML Publisher [message #450570 is a reply to message #450556] Thu, 08 April 2010 01:17 Go to previous messageGo to next message
AlexAnd
Messages: 18
Registered: March 2010
Junior Member
what you read?
please write URL or name of document for all
Re: If then else statement in XML Publisher [message #450702 is a reply to message #450570] Thu, 08 April 2010 16:56 Go to previous message
oraclefaqs1
Messages: 23
Registered: October 2008
Location: SC
Junior Member

dude I got something online I don't even remember the site where I read. It is some blog spot I got the if-then-else command I just used and made my notes after it worked fine.

cheers,
Previous Topic: Date Prompt In Answers
Next Topic: Scheduling a workbook in oracle discoverorplus for olap
Goto Forum:
  


Current Time: Fri Mar 29 05:46:21 CDT 2024