Hi,
I've created a report whose filter label may change. I'm passing the filter label in as a parameter but when I go to set the label text, the filter label is not appearing when the page first opens and the report includes all data. When I change the filter or dates and the report refreshes, the filter label is then displayed. I'm setting the label to the parameter.FilterLabel.Value but again, it doesn't display until the report is refreshed after the initial report is displayed after opening the page. Any ideas on how to get this filter label to display when the page opens?
I've include a pic of what the filter looks like when the page first opens and after a filter is selected. I'm passing the string 'Department' in as a parameter.
Thanks,
Jim
6 Answers, 1 is accepted
You can use the AllValues or AllDistinctValues aggregates to load the report with all filter values preselected on the initial load of the report.
Regards,
Nasko
Progress Telerik
Hi Nasko,
Thanks for the reply. I'm not actually looking to populate the filter itself as this is already being done. I'm looking for a method to populate the label of the filter since it's dynamic. I'm passing the label name in as a parameter, but it does not appear when the page is first displayed. It only appears after I cause the report to be regenerated again (e.g. I change the date range) Then the correct label will be displayed.
JIm
What is the expression you are using to set the Parameter.Text property which controls the label?
Is this behavior observed only in a particular report viewer, or it is present in the report designer as well?
Regards,
Nasko
Progress Telerik
I've created a report whose filter label may change. I'm passing the filter label in as a parameter but when I go to set the label text, the filter label is not appearing when the page first opens and the report includes all data. When I change the filter or dates and the report refreshes, the filter label is then displayed. I'm setting the label to the parameter.FilterLabel.Value but again, it doesn't display until the report is refreshed after the initial report is displayed after opening the page. Any ideas on how to get this filter label to display when the page opens?
I've attached a pic that shows how I'm setting the label text and what the label looks like initially and after I choose one of the departments.
I tested to set the label of one Report Parameter to the value of another Report Parameter, and this works correctly on our side. I tested in Preview with the Standalone report designer, and with Html5 Report Viewer in a Web application.
I suggest you to open a support ticket and send us a sample runnable report/project reproducing the issue. We would investigate it and try to provide a specific advice.
Regards,
Todor
Progress Telerik
Todor,
Thanks for your reply. I'll see if I can put together a sample for you to try.
Jim