XML-Publisher how to display your input parameter

This week I have played a bit with XML-Publisher. The goal was take some reports and try to migrate them to XML-Publisher version. Yesterday I posted a blog about how you can setup a matrix report using the proper tags and references. I must say I was very content that it was possible and although it took me some time. After I accomplished the matrix layout the next question came up. How can I display the input parameters of the report in my report?

It is a very small trick you should understand. first you have to create a declaration and reference to your parameter in your report. Let us asume that my report accepts as input the parameter P_SUBMISSION_ID.
You create a tag in your RTF file with the following syntax:

<?param@begin:P_SUBMISSION_ID?>

We can now reference the parameter in our report by the syntax:

<?$P_SUBMISSION_ID?>

Example:
Parameter reference

This will result in the following layout:
Parameter result

3 Comments

  1. Regina Jones August 30, 2011
  2. sreekanth May 29, 2008
  3. Tarek April 21, 2007