Hide filters using URL parameter


(Arkadi Tereshenkov) #1

Hi,
Is it possible to hide filters using a URL parameter.
Our use case is following:
We have embedded dashboard that is shown from two different pages. One page is a generic page and user selects the filter values using standard UI.
The second page passes in the context and want to hide the filter selection, but we don’t want to create the second identical page with show_filters_bar=true in Lookml.


(quinn.morrison) #2

Hi @Arkadi_Tereshenkov,

Thanks for reaching out. There is not a dedicated URL parameter that will control the hiding of filters, however, there is a new Beta feature (starting in version 5.22) called Embed Themes that may allow us to accomplish the same thing. We can create a new theme that hides the filter bar, and add that to the URL of our dashboard with ?theme=no_filter_theme to the url_path in your embed script. If you are interested in enabling this feature, please reach out to support@looker.com!

Thanks
Quinn


(Arkadi Tereshenkov) #3

Thanks, we will give it a try.


(Ian) #4

does this work with SSO embedding as well? we were just having to duplicate a dashboard to set the embed settings on one as we want sso embedding with filters and again without.


(jonathan.reinhard) #5

Hello Ian,

yes this also works for sso embedding. Once you created the themes you can reference them in the URL part of the script. I created two themes, one without filter (‘jonathannofilterbar’) and one with filterbar(‘jonathanfilterbar’), please see the screenshots below:

When I use the theme with filterbar:

When I use the theme without filterbar:

Kind Regards.
Jonathan