dynamic filter label changing

7 posts, 0 answers
  1. Jim
    Jim avatar
    7 posts
    Member since:
    Nov 2016

    Posted 12 Jun 2018 Link to this post

    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

     

  2. Nasko
    Admin
    Nasko avatar
    1067 posts

    Posted 15 Jun 2018 Link to this post

    Hi Jim,

    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
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Jim
    Jim avatar
    7 posts
    Member since:
    Nov 2016

    Posted 19 Jun 2018 in reply to Nasko Link to this post

    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

     

     

  4. Nasko
    Admin
    Nasko avatar
    1067 posts

    Posted 20 Jun 2018 Link to this post

    Hello 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
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Jim
    Jim avatar
    7 posts
    Member since:
    Nov 2016

    Posted 20 Jun 2018 in reply to Nasko Link to this post

    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.

  6. Todor
    Admin
    Todor avatar
    384 posts

    Posted 25 Jun 2018 Link to this post

    Hi Jim,

    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
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  7. Jim
    Jim avatar
    7 posts
    Member since:
    Nov 2016

    Posted 25 Jun 2018 in reply to Todor Link to this post

    Todor,

    Thanks for your reply.  I'll see if I can put together a sample for you to try.

    Jim

     

Back to Top