A formula which references parameters will return values according to the parameter values. To reference a parameter in a formula, follow the syntax: @ParameterName.
In the following example, a formula will be used to display the URL for a company, which is based on the value of the parameter p_Company.
<install_root>\Demo\Reports\SampleReports
."http://www." + @p_Company + ".com"
Here, you can either manually type @p_Company, or you can select it from the Parameters node in the Fields panel (if you choose this option, the @ sign will be automatically inserted).
There may be times you need to display the value of a multi-valued parameter. The built-in function join assists with that. For example, the following expression will show a list of selected states separated by commas:
"Selected States : " + trim(join (@pStates,",")) + "\r\n"
These are simple examples of referencing parameters in formulas, in which the formulas are placed directly into a report. You would better understand the benefits of referencing parameters in formulas which are used to control object properties.