BI Publisher – Conditional display of the template region- Using IF condition in rtf Template

If your requirement is of displaying a certain part of the template depending on some condition then the following example could be of help.

It is similar to IF condition.

Say the requirement is to display “No Data Found  if the Report does not fetch any values” else it should display “End of Report”.

<?if:CF_COUNT= 0?>

*****No Data Found*****

<?end if?>

<?if:CF_COUNT != 0?>

   *****End of Report*****

<?end if?>

CF_COUNT is a formula column in the rdf returning the count of records returned.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s