How to set the content of JsonDataSource through report parameter
|Product Version||22.214.171.1244 +|
|Product||Progress® Telerik® Reporting|
Sometimes you want to change the content of JSON DataSource or to set it in runtime.
If you have a table in the report and the datasource is assigned to it, firstly you need to create the report parameter which has to be from Type String. In the table, you need to add a declaration for each field (for instance: =Fields.Name and so on).
Property path: DataSource.Source Expression: Parameters.Parameter1.Value
The same approach can be applied if the datasource is assigned to the report or any other data item. In this case, the Binding has to be added to the report/ data item.
The demo report can be downloaded from here.