Creating a parameter

To create a parameter in a catalog, follow the steps below:

  1. In JReport Designer, open the catalog file in which you want to create the parameter.
  2. In the Data tab of the Catalog Browser, expand the data source that will include the parameter, right-click the Parameters node, and then select Add Parameter to bring up the Create Parameter dialog. See the dialog.
  3. In the Name field, input a name for the parameter.
  4. Select a parameter type from the Value Setting drop-down list. For parameters in XML connection, it can only be Type-in Parameter.
  5. In the values section, specify the parameter values as required. The section varies with the type you select from the Value Setting drop-down list.
  6. In the Options box, set options for the parameter according to your requirements.
  7. When done, click OK to create the parameter.