[{"id":"5efffa63-6bf4-4819-8af7-0f6b8e1c53a4","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"dfd416a6-eef9-49a0-bb8b-2e739da5cc1c","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"3b1e4fc6-fe58-48c3-b090-4335186ca05c","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"7f93f7b9-9f7f-46b2-b05f-494017b34eae","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"95079239-11e6-44bd-8e3f-4c5b9f8e172c","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"43ece935-4016-4eb3-a3f8-5951257cb2a7","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"b2fdc309-b91f-42a8-b6f5-5c04d366748e","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"bb982598-dc4e-4495-884c-64f4338def46","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"c632c625-e3a4-4a10-abfa-66bf4a2cd520","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"8fc7bf9e-d24f-43cd-a915-6f8a991152c4","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"7e488fdd-64d8-4c8f-9f96-7a9590f02070","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"4d93a50e-208e-44ef-8ea6-8e81d4c8f339","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"e77dbdc2-200d-4c9c-9bf7-907a453eccb0","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"eecc4b5c-431b-4677-887b-a523a0d10cfd","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"ba126ca3-9e37-4aed-b486-a79bd39b3d86","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]},{"id":"5792319e-7207-4871-a69d-aa3b6eabad63","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"eb1cc175-3766-46e9-9659-c125771a58d4","tags":[{"name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3"}]},{"id":"212b23f1-4bfe-46f9-91cf-f24eca55418d","tags":[{"name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601","links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e"}]}]
In ActiveReportsJS, report parameters can be used for a broad range of scenarios:
Selecting data to be displayed in the report output. The Get Started with Summary Reports walkthrough uses this approach.
Passing variables into a subreport or drill-through report. Visit the Get Started with Drill-Through Reports walkthrough for more information.
Allowing a report reader to alter the appearance of report items on the fly. For instance, you could conditionally hide a table column depending on a parameter value.
You can use the Data panel to add a new parameter into a report.
Expand to watch adding a parameter in action
A report parameter has the following properties.
The Name
string is the parameter's Id. It is used to pass a parameter value from the main report into a subreport.
The Prompt
string is the text that appears along with a parameter value editor in the Viewer parameters panel.
The Data Type
is one of the following values that determines the domain of acceptable parameter values and the editor type that appears in the Parameters panel.
Boolean
- a parameter value is True
or False
and a report reader sets it using the radio button.
DateTime
- a parameter value is Date
and Time
and a report reader selects it from a calendar control.
Date
- a parameter value is Date
and a report reader selects it from a calendar control without the time setter.
Integer
- a parameter value is an integer number, and a report reader types it in a text box.
Float
- a parameter value is a decimal number, and a report reader types it in a text box.
String
- a parameter value is a text, and a report reader types it in a text box.
The Multivalue
flag indicates whether a parameter may have more than one value. This option applies only if the parameter has the Available Values
specified. The value editor for multivalue parameters includes the Select All
option whose label can be set in the Select All Value
property of a parameter.
The Hidden
flag indicates whether a parameter should be displayed in the parameter panel. Hidden parameters are used to pass data between a main report and subreport.
The Allow Null Value
flag indicates if a parameter's value can be undefined. The Null
checkbox is shown alongside the value editor in the parameters panel.
The Multiline
flag appears if the Data Type
is String
and indicates whether the value editor should allow multiline input.
The Allow Blank Value
flag appears if the Data Type
is String
and indicates whether a report reader could leave the parameter's value empty.
The Available Values
collection limits the range of acceptable parameter values and shows the drop-down editor in the parameters panel. Each available value has the Label
and the Value
. The former is displayed in the parameters panel. The latter is used for report processing. The list of available values could be automatically pulled from a DataSet or typed manually using the From Query
and Non-Queried
options, respectively. The Get Started with Summary Reports walkthrough uses the feature to display the list of sales channels from a data set.
The Default Value
configuration indicates the value that a report should be initially run with. The default value could be pulled from a data set if you select its name and the field name using the From Query
option. You could also provide the default value manually using the Non-queried
option.
Cascading parameters is a configuration where one parameter depends on the value chosen in another parameter. For example, the Get Started with Fixed Layout Reports walkthrough uses this feature to show the order list for the selected customers. The cascading parameters configuration involves the following parts.
A DataSet whose configuration depends on the first parameter's value. For instance, the Fixed Layout Report
walkthrough uses the data set that filters the data with the parametrized OData filter query.
The second parameter that pulls available values from the data set. When the first parameter's value changes, the data set updates and refreshes the available value of the second parameter.
Expand to watch using cascading parameters in action