A parameter is a report variable that is set by the
user and instantiated when the report is refreshed. There are many types of
parameters, and programmatically setting different types can result in
different behaviors and experiences for users of your application.
Best practices for working with
parameters
To avoid runtime errors when setting parameters
programmatically, note the following:
Parameter values must be of the same type as
the parameter.
If the parameter has an edit mask, the values
for the parameter should respect the mask.
When reading parameter values, ensure that you
know what type of values you are reading, that is, whether they are discrete or
ranged.
Set the bound type on a range value before
adding it to the parameter.
Ensure that the upper bound of a range value is
larger than the lower bound.
Classes used when working with
parameters
com.crystaldecisions.sdk.occa.report.application.ParameterFieldController
Adds, removes, and modifies parameter fields in
a report.
com.crystaldecisions.sdk.occa.report.data.ParameterFieldRepresents a parameter field in a report.