5.6. How to make the report dependent on a parameter value

You can set parameters of the report. Each parameter has its own name, type and current value. Setting of a parameter does not mean it is inserted into report. You can insert the same parameter into different report places.

5.6.1. How to add a number parameter to a report

  1. in Data tab choose Add Report Parameter from popup menu, you will see window New Report Parameter

  2. from options Type select Number and select button Next

  3. specify fields Name and Value

  4. if your value is not a number you will be informed about a mistake

  5. select button Finish

5.6.2. How to add a text parameter to a report

  1. in Data tab choose Add Report Parameter from popup menu, you will see window New Report Parameter

  2. from options Type select Text and select button Next

  3. specify fields Name and Value

  4. select button Finish

5.6.3. How to add a date and time parameter to a report

  1. in Data tab choose Add Report Parameter from popup menu, you will see window New Report Parameter

  2. from options Type select Date and select button Next

  3. specify fields Name and Valueand give data in form of YYYY-MM-DD, afterwards may appear time in one of given formats:

    • HH-MM-SS

    • HH-MM-SS-sss

  4. if your value is wrong, you will see an information about a mistake in the window header

  5. select button Finish

5.6.4. How to add truth or false parameter to a report

  1. in Data tab choose Add Report Parameter from popup menu, you will see window New Report Parameter

  2. from options Type select True/False and select button Next

  3. specify fields Name and select from value list Truth or False

  4. select button Finish

5.6.5. How to add data set parameter to a report

To specify value of a data set element parameter you have to give its id. The id is always a single number, but it could be also several values separated with commas. You can add such kind of parameter in two ways.

First way:

  1. choose data set from Data tab

  2. choose Add Report Parameter from popup menu; you will see window New Report parameter, where appropriate parameter type will be already chosen

  3. select button Next

  4. specify the field Name

  5. parameter will have default value, which you can change by selecting button Set the value

  6. select button Finish

Second way:

  1. use controlled way to insert data

  2. in the window Associating select option As a new Parameter

5.6.6. How to add parameter based on a list of values

  1. in Data tab choose Add Report Parameter from popup menu, you will see window New Report Parameter,

  2. from options Type choose the type of parameter,

  3. from section Special options check List of values and select button Next,

    Important: Option List of values is available only if the chosen parameter type is: Number, Text or Date.

  4. specify field Name,

  5. for each value of the list specify field Value and select button Add,

  6. select button Finish.