Updating widget titles

Answered

Comments

5 comments

  • Avatar
    Tomer Ravid

    Well, if anyone has this issue I solved it by modifying the titles from the dashboard script. 

    It's less flexible but works like a charm. 

    2
    Comment actions Permalink
  • Avatar
    Oxana Noa Umansky

    Thanks for commenting back on your own post and sharing the solution Tomer :)

    0
    Comment actions Permalink
  • Avatar
    Marianna Shapira

    Hello Tomer, 

    I need to adjust some widget titles partially (some part of the title should stay static)  in my dashboard each time one of the dashboard filters changes to this filter option chosen. Do you have a script for this operation?

     

     

    0
    Comment actions Permalink
  • Avatar
    Aditya Mankare

    @Tomer Ravid Could you please share your fix? Facing the same problem right now. Thanks!

    0
    Comment actions Permalink
  • Avatar
    Ravid Paldi

    Hi Aditaya, 

     

    I don't have a code snippet out-of-the-box for you but the genreal approach should be something like: 

    1) Move your logic to the Dashboards level (I.E. the dahsboard script instead of the widget script( 

    2) Write some code that will run on  every "filterschanged" event (in some Sisense versions there are bugs with that events so if needed, I have a workaround for that as well but its a fairly dirty patch so I would recommend avoiding it if the filterschanged event is working properly for your version 

    3) Get from the dashboard object a list of all its widgets and update their title according to your desired  logic with the selected filters/dates

    4) Init the titles for hte first time upon the "dashboardloaded" loaded event as if I'm n ot mistaken, the "filterschanged" event is called only upon filters changes of the user. 

     

    Let me know if you need any further help, we're always happy to help (: 

    Ravid

    ravid@paldi.solutions

    Paldi Solutuions, an official implementation partner of Sisense

     

    0
    Comment actions Permalink

Please sign in to leave a comment.