Adding Export to PDF in embeded dashboards

Comments

6 comments

  • Avatar
    Simon Vosloo

    Hi Michał

    I have given this a try on Chrome. It changes the text to a button. But when I click on it, changes to Downloading, but that is all it does, it doesn't seem to actually download the PDF.

    Any thoughts where I could look to figure it out.

    I have changed the url and the dashboard id.

    Thanks

    0
    Comment actions Permalink
  • Avatar
    Michael Becker

    Hi Simon,

    It seems something has changed in version 6 and this code stopped working for me as well :( I'll have a look in it. In the mean time if you need to use export to pdf in embedded dashboards you can now enable only part of the header so users can use native export to pdf, please see here - http://www.sisense.com/documentation/embedding-dashboards-widgets/

    Regards,

    Michał

    0
    Comment actions Permalink
  • Avatar
    Simon Vosloo

    Hi Michał

    Thanks for the feedback. I have tried that option, and for some reason setting toolbar=true doesn't seem to work. I have added that comment to them.

    Look forward to hearing back from you once resolved.

     

    0
    Comment actions Permalink
  • Avatar
    Michael Becker

    Hi Simon,

    you need to use only letter 't' for toolbar, so it should look like that: 't=true'. It should work,I've used that recently with no problems.

    Regards,

    Michał

    1
    Comment actions Permalink
  • Avatar
    Simon Vosloo
    Hi Michal
    That's what I have been using. I also use the r=true and h=true and those work just fine.
    I will have another look though. Have you used it since version 6 upgrade?
    0
    Comment actions Permalink
  • Avatar
    Alberto Navas

    Hi Micheal,

    I want to add a button on a widget named "Export PDF" which exports only that widget. I managed to add the button but it exports the whole dashboard but I want to change it to a specific widget.
    This is a part of the code i am using :
    window.exportToPDF = function PDF() {
    active = [];
    active.dashboard = prism.activeDashboard;
    prism.$command.execute("dashboard.commands.exportToPDF", [], active)
    }

    I want to ask if I can replace "prism.activeDashboard" with something in which I specify the widget using its id..

     

    Regards,

    0
    Comment actions Permalink

Please sign in to leave a comment.