This guide will help you get a better understanding of parameter injections.
Suggested Reading
Read these guides first before continuing:
Understanding Parameter Injections
Various Reporting macros support parameter injections, such as Report Variable and Report Eval, just to name a few.
...
Let's start with something basic and display the page's title.
Create a Report On macro.
Tick the Injected parameter.
Within the report-on macro, type in "%content:title%".
You should have something like this:
Which should display this:
"Injecting Parameters with Parameter Injections"
Example 2: Showing the Page Title of the Parent Page
Let's show the title of the parent of the current page.
First, create a Report Variable macro.
For the Name parameter, type in "Parent Name".
Now, let's inject the following keychain into the Value parameter:
%page:parent > page:title%Create a Report Info macro so we can get the results of the Value from Report Variable.
For the Key parameter, type in "variable:Parent Name".
(Notice that the variable is called using a keychain using the Variable Supplier.)You should have something like this:
Which should result in this:"Intermediate Tutorials"
Example 3: Displaying a Message with Multiple Values from Different Suppliers
Let's display a message that contains several parameter injections.
Start by creating a report-variable.
For the Name parameter, type in "Message".
For the Value parameter, let's type in this text string which includes some injected parameters:
"Created by %page:creator > user:full name% on %page:creation date > date:dd-MMM-yyyy%"Now, create a Report Info macro.
For the Key parameter, type in "variable:Message".
You should now have something that looks like this:
Which should result in this:"Created by Ted Mahsun on 18-Sep-2014"