Export PDF for multiple Layers even if it is hidden

Hi Team

Is there a way to export the PDF for multiple layer dashboard ?
For e.g. If I have 3 layers (Layer 1 , Layer 2 , Layer 3) in the dashboard and only one layer(Layer 1) is visible at a time when I run the dashboard (Layer 2 and Layer 3 are hidden). However when I export to PDF (Layer 1 and Layer 2) should come in export. Is it possible ?

Regards
Aditya Dave

Hi Aditya,

The export by default will capture what you are currently showing on the dashboard and will only export the current layer. If you’re looking to have a single dashboard captured in a single go to show multiple views of the same content, then you must do something else.

  1. You could embed your dashboard into a report multiple times for each layer into a single long flowing report. Exporting this report would give you the ability to do this in a single PDF. You could even add an export button to your dashboard that performs the export for you using the API if you’re willing to write a bit of code. Essentially, use the API to export the report from the dashboard that you’re viewing to return a single file.
  2. You could use the ‘before export’ event. Exporting a single dashboard is still only going to only capture a single-page view but the before export event controls what happens before the capture is taken. If you have three different views, you could add three export buttons to your dashboard so that it automatically exports that view that you want to have captured. This approach would allow your user to export what they want with a single click, but you’d only get one export and not one that is combined. In this case, it’s a convenience as the user could always just adjust the layers the way they want and just click export.