Understanding Parameter Injections

Injecting parameters into a macro means that you can take a parameter of a Supplier and inject the value of that parameter into that macro.

For example, using the Report Variable macro, you can declare a variable with a constant value of "10". But what if you wanted to declare a value that's more dynamic? Let's say you want to declare a variable with a number that's equivalent to the number of characters in the title of the current page.

The keychain for that would be: "content:title > text:size" and will give you the result of "46".

To use that with the Report Variable macro, you will have to "inject" that keychain value into it. You do that by entering %content:title > text:size% into the Value parameter of Report Variable.

Notice the keychain is surrounded by the "%" character.

Now that the Report Variable macro has been injected with the keychain as its value, you can now use that value with other Reporting-related macros.