Previous TopicNext Topic


How to create a simple report parameter

  1. In the data explorer, right-click Report Parameters, and choose New Parameter.
  2. New Parameter appears, as shown in Figure 12-1.

    Figure 12-1 New Parameter
  3. Specify the following basic properties:
    1. For Name, type a name for the parameter. If you do not specify a value for Prompt text, the report user sees the Name value as the prompt. It is good practice to supply a friendly name for the parameter in Prompt text and prefix the value you select for Name with RP to help distinguish report parameters from other parameter types, such as data-set parameters. For example, a report parameter used to filter quantityinstock might be named RP_quantityinstock.
    2. For Type, select a data type for the parameter.
    3. The data type that you select does not have to match the data type of the field in the data source. Values in an orderID field, for example, can be stored as integers in the database, but the report parameter that is associated with this field can be of decimal or string type. The data type that you select for the report parameter determines the formatting options that are available if you choose to provide a default value or a list of values for the report parameter.
      For date fields, you can select either Date Time or String. Specifying the string data type provides more flexibility for the user to specify dates in a variety of formats. For example, the user can type 02/04/2004, 2/4/04, or Feb 4, 2004. The trade-off is that you cannot use date-and-time formats to change how dates appear if you choose to provide the user with a list of date values.
    4. Choose OK.
    5. The parameter appears under Report Parameters in the data explorer.

If necessary, repeat these steps to create additional report parameters.


(c) Copyright Actuate Corporation 2006

Previous TopicNext Topic