Question

Is there any way to save the filter values in an embedded dashboard?

  • 2 November 2015
  • 6 replies
  • 518 views

We are embedding dashboards into our application for our users. Each user has her/his own access_filter_feilds. However, users apply additional filters on the dashboard. They would prefer to not set up the filters each time they come back.


I’d like to



  • Get the filter values

  • Save the values

  • Create the embed link with the filters applied the next time the user comes back


OR



  • I could write my own filter setting html/javascript

  • Create the dashboard with the filters set.


Let me know your thoughts.


6 replies

Userlevel 4
Badge

Hey Sonny,


We are working on a javascript api that will return events based on the parent page, which would be able to help with this, however this api is a ways away.


In the meantime, I believe the latter would be the only way to do this. Pulling the src url from the iframe, parsing it for the filter values, and then applying them where appropriate.

In release 3.42 we are releasing functionality for dashboards to communicate to their parent page. You can find out more here.

@awoodcock You will like this feature!

hi Lookers,


Any updates on this?


The functionality of dashboards communicating to their parent page allows to send dashboard filter value changes to parent frame but not the other way around, correct?


Is there a javascript API to listen to events on parent page and pass them into looker dashboard embedded via iframe ?

Userlevel 3

Hey Matt,


Yes, this is currently possible.


In a nutshell, you can build a process that takes the filter values added in the iframe, sends them to an internal server which then stores the filter value as something you can pass into the URL on the next parent page load.


This article describes the process for doing so.


Let me know if you have any questions about this!

The final link is not working. Can anyone please update and point to the right solution page.

Reply