Tuesday 21 April 2020

if else in rtf template

if else in rtf template

In this post , We will be discus about if else in rtf template. if we want to put some conditions in the rtf template , then we can use if else in rtf template. if else is the syntax provided by oracle , which we can use in the rtf template to conditionally display the layouts and the texts in the rtf templates. Using if else in rtf template we can can dynamically control the layout of the rtf templates. if else helps to meet the conditional business layout requirements in rtf template. Here below we will be discuss in more about if else in rtf template and will share the complete syntax about if else in rtf template. Please find below the detail about if else in rtf template.

if else in rtf template
if else in rtf template

Complete syntax about if else in rtf template

Here below is the syntax provided by oracle to use if else in rtf template.

These are the below , two tags provided to use the if else in rtf template

<?IF?>

<?END IF?>

Example using if else in rtf template

Here in the below Example , P_FLAG is the XML attribute. Whose value is changing as per the report output. 

Here we can trying to put condition if _FLAG='Y' then 'Yes' will print , otherwise 'No' will be print.

 <?if:P_FLAG='Y'?> Yes <?end if?><?if:P_FLAG='N'?> No <?end if?>

xdofx syntax to use if else in rtf template


<?xdofx:if element_condition then result1 else result2 end if?>

Example Using the xdofx syntax to use if else in rtf template


<?xdofx:if PO_AMOUNT > 1000 then 'Apprvoal Required'
else
if INVOICE_AMOUNT <1000 then 'Apprvoal Not Required'
end if?> 
if else in rtf template
if else in rtf template

0 comments:

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *