Skip to main content

Apply Action Filters to dashboard using URL (Before Loading the Visualization)Hi All,

 

We save the filter values applied by the user for future use. The filters also include few Action Filters.

We are trying to apply the saved filters before loading the Visualization as described here https://help.tableau.com/current/api/js_api/en-us/JavaScriptAPI/js_api_concepts_filtering.htm

 

However, if we try to do that we get an error "Unknown Server Error". please find the attached screenshot for error we see.

 

Below is the relevant part of the code for your reference

 

```

tableauViz = new tableau.Viz(frameDiv[0], url, {

      highdpi: true,

      hideTabs: true,

      hideToolbar: true,

      width: "100%",

      height: "100%",

      "Action (State)": "West Virginia",

     });

```

 

1) Can action filters be applied before loading the Visualisation?

2) May be i am doing something wrong, any help on how to apply action filters before the Viz loads will be really great.

 

@Keshia Rose (Inactive)​ @Santiago Sanchez​ tagging for help.

 

Thanks.

2 respuestas
  1. 6 ago 2020, 16:32

    Hi Akshar, Don't think you can apply action filters before load but it at least shouldn't be giving you that error. Can you not use State: "West Virginia" instead of the action filter? Remember that any filters in your options before load will apply to everything anyways.

     

    Internal 1156418

0/9000