Wednesday 22 April 2020

if condition in rtf template

if condition in rtf template


In this post , We will be discus about if condition in rtf template. if we want to put some conditions in the rtf template , then we can use if condition in rtf template. if condition in rtf template 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 condition in rtf template we can can use dynamically control the layout of the rtf templates. IF condition helps to meet the conditional business layout requirements in rtf template. Here below we will be discuss in more about if condition in rtf template and will share the complete syntax about if condition in rtf template. Please find below the detail about if condition in rtf template.

if condition in rtf template
if condition in rtf template

Complete syntax about if condition 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 condition 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 condition in rtf template


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

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


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

if condition in rtf template
if condition in rtf template

0 comments:

Post a Comment

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

Name

Email *

Message *