Collapse

How to customize the parameter label based on another parameter value

To change a parameter label based on another parameter value in the Bold Reports® Standalone Report Designer, add custom code to the report and assign it to SfExp in the parameter label. Follow these steps:

  1. Open the report in the Standalone Report Designer.

  2. Open the report properties and click Code to add the custom code to get the parameter label, as shown in the following image.

    Custom Code

  3. While creating the parameter, use the custom code function and assign it to the SfExp to manually set a label of the parameter based on the previous parameter value as shown in the following image.

    Parameter label expression

While previewing the report, the parameter label will be as shown in the following image:

Preview report with customized parameter label

You can use the same SfExp approach for other scenarios, such as changing the culture of the parameter label or using dataset fields as parameter labels.

See also

Add report parameter to the report