Trying to display a filter pre-selected item as a title

Answered

Comments

2 comments

  • Avatar
    Lidor Rosencovich

    Hi Daniel, 

    You should have the dashboard object on either of 'initialized' or 'refreshend' events. on the dashboard object, you have all filters items and you can get their members selected.

    Try to use this snippet and let me know if it helps to resolve your issue:

    dashboard.on("refreshend", function(dash, args){

            var allFilterItems = dash.filters.$$items;

    });

     

    Also, please note these events are triggered after the filterschanged is triggered. If for some reason it breaks your logic, try to use the 'dashboardloaded' event on the prism object which is triggered on the first load of the dashboard.

     

    Regards,

    Lidor

    1
    Comment actions Permalink
  • Avatar
    Jill Saliba

    Hi Lidor, 

    Could you elaborate on this please? I am trying to update the title of a widget to include the name of the selection made on a dashboard filter.

    Thank you,

    Jill

    0
    Comment actions Permalink

Please sign in to leave a comment.