Hitachi Vantara Pentaho Community Forums
Results 1 to 9 of 9

Thread: Refresh entire Dashboard

  1. #1

    Default Refresh entire Dashboard

    Hi all,

    I'd like to put a button which refresh the entire dashboard.
    Is it possible to write in expression something like:

    function(a){ Dashboards.update();
    }

    Thanks

  2. #2
    Join Date
    Nov 2011
    Posts
    1,229

    Default

    I think Dashboards.updateAll() will trigger an update for all components.
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

  3. #3

    Default

    unfortunately I put a button component with this expression:

    function f(){
    Dashboards.updateAll();
    }

    but nothing happened...
    thanks

  4. #4
    Join Date
    Nov 2011
    Posts
    1,229

    Default

    Is the method being called? Are there errors on the javascript console?
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

  5. #5

    Default

    there are no javascript errors, it works if instead I put:

    function f(){
    Dashboards.initEngine();
    }

    Do you have any idea why "
    Dashboards.update('component');" and "Dashboards.updateAll();" don't work? Thx

  6. #6
    Join Date
    Nov 2011
    Posts
    1,229

    Default

    nope. It should work. What do the javascript logs say when you try Dashboards.update('component') ?
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

  7. #7

    Default

    mmm...how to check the javascript log? I'll report you...

  8. #8
    Join Date
    Nov 2011
    Posts
    1,229

    Default

    Depends on the browser. On chrome, you need to turn on Developer Tools, on firefox it's usually Firebug you need to use.
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

  9. #9
    Join Date
    Jun 2014
    Posts
    13

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.