Question

How to update query filters from inside custom visualization element from embed dashboard

  • 26 November 2021
  • 0 replies
  • 51 views

Hi all,

I have a custom visualization for a tile where we have some HTML elements which on change need to trigger a change in query filter. I am using https://github.com/looker/custom_visualizations_v2/blob/master/docs/api_reference.md#events for that purpose. The trigger works and refreshes data only when in the explore mode. As soon as we save the visualization and tile, the trigger from the element stops working. Is there a bug in the API or an updated API for that?
Using this method:
 

          this.trigger("filter", [
{ field: "my_filter", value: "2", run: true }
])

How can we achieve that when the enduser is using the embedded dashboard also?

 

thanks


This topic has been closed for comments