Sunday 26 April 2020

Conditional display in rtf template

Conditional display in rtf template

In this post , We will be discuss about Conditional display in rtf template. if we want to put some conditions in the rtf template , then we have the options using 'if conditions' 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 in the rtf templates. Using if condition in rtf template we can can use conditionally control the layout in 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 Conditional display in rtf template.

Conditional display in rtf template
Conditional display in rtf template

Complete syntax about Conditional display in rtf template

Here below is the syntax provided by oracle to use Conditional display 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 to Conditional display 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 Conditional display in rtf template


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

Example Using the xdofx syntax to Conditional display in rtf template


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

Conditional display in rtf template
Conditional display in rtf template


0 comments:

Post a Comment

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

Name

Email *

Message *