-
1. Re: Filtering an embedded dashboard depending on the user?
Carisa ChangNov 8, 2018 9:47 PM (in response to Jordi Gimenez)
Hi Jordi,
You can accomplish this with User Filters, just like when users are viewing the dashboard directly on Tableau Server or Tableau Online. Embedding will still recognize your user because they'll need to sign in before the embedded view is loaded.
-
2. Re: Filtering an embedded dashboard depending on the user?
Olivier BOUCHARD Nov 20, 2018 10:57 PM (in response to Jordi Gimenez)Hi Jordi,
If you Tableau need to be Embedded into a WebSite, the easy way is to use Tableau Javascript API (Tableau JavaScript API - Tableau ). In addition of embedding Tableau contents, you can manipulate your Tableau elements such as Filters and Parameters.
Here down, a scrapbook of a Javascript application (VueJS but it can be anything even a single HTML page) I've used to change Filters and Parameters (which depends on Users or other Access Control List). The script isn't usable as it as I've removed sensitive data, but the idea is there. In short it used those 4 JS calls :
- window.tableau.Viz => To Embed Tableau workbook contents into existing webpage
- refreshDataAsync => To force refresh the workbook
- changeParameterValueAsync => To apply a workbook parameter change
- applyFilterAsync => To apply a workbook filter change
-
tabviz.vue.zip 890 bytes
-