How to fix the error export pdf with filtered chart dashboard by Snapshot()

I am trying export charts on dashboard to pdf but it all charts are blank although these are have value in the app.
Pic#1: Dashboad with charts


Pic#2: I used snapshot (linktoview(“Chart name”)) to show each Chart on a template pdf, but all chart are blank.


How to show the right dashboard in the template?
Pls help.

Thanks

0 4 140
4 REPLIES 4

Hey hien_nguyen,

It looks like you are doing what is described here at the snapshot() article, but I am not entirely sure why it isn’t working.

Link to article: SNAPSHOT() | AppSheet Help Center

I would probably reach out to customer support to see what might be happening since it seems like everything you are doing is right. Might be something missing that I am unaware of.

Link to support: Customer Support - AppSheet

Have a good one!
Cale

Are you using UserSettings by any chance?

The snapshot is performed as follows:

  1. When the Snapshot function call is encountered in the email or create file template, the AppSheet server invokes the Google WRS web service that is capable of capturing the contents of a view to an image file.
  2. The AppSheet server passes the WRS web service a special token that allows WRS to invoke the view you specified in the Snapshot function.
  3. The WRS web service, invokes your application using the special token, your application displays the requested chart or graph view, WRS captures the view contents to an image file, and WRS closes your application.
  4. The WRS web service returns the captured image file to the AppSheet server.
  5. The AppSheet server inserts the captured image in the PDF file.

At present, when WRS invokes your application, the UserSettings are not passed to your application. As a result, Snapshot may not work properly if your application relies on the UserSetting being present for the view to be displayed correctly. For example, security filters or view filters that refer to UserSettings will not work properly.

I am in the process of fixing this.

I only use useremail to login and filter form for DASHBOARD. If I print the chart no filter, it is ok but for filtered chart it is blank.

Thank you.

Top Labels in this Space