Wednesday 22 April 2020

like condition in rtf template

like condition in rtf template

In this post , We will be discuss about the like condition in rtf template. Using the like condition in rtf template , we can use the conditional display in the rtf template which helps to display the rtf template dynamically. Using like condition in rtf template we can can use dynamically control the layout of the rtf templates. like condition helps to meet the conditional business layout requirements in rtf template. Here below we will be discuss in more about like condition in rtf template and will share the complete syntax about like condition in rtf template. Please find below the detail about like condition.

like condition in rtf template

Complete syntax about like condition in rtf template

Here below is the syntax provided by oracle to use like condition in rtf template

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

<?if@row:contains(XML_COLOUMN,'TEXT')?> <?end if?>

<?if@row:ends-with(XML_COLOUMN,'TEXT')?> <?end if?>

<?if@row:starts-with(XML_COLOUMN,'TEXT')?> <?end if?>


Example using like condition in rtf template

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

Here we can trying to put LIKE condition based on three below options.


First Condition , Will be true if SUPPLIER NAME will contain the 'TAX'

<?if@row:contains(SUPPLIER_NAME,'TAX')?> <?end if?>



Second Condition , Will be true if SUPPLIER NAME will end with 'EN'

<?if@row:ends-with(SUPPLIER_NAME,'EN')?> <?end if?>



Third Condition , Will be true if SUPPLIER NAME will start with 'NT'

<?if@row:starts-with(SUPPLIER_NAME,'NT')?> <?end if?>



like condition in rtf template
like condition in rtf template


0 comments:

Post a Comment

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

Name

Email *

Message *