I want to create a dashboard on the behavior of specific groups I track with the Accounts Addon.
This dashboard should be embedded/linked from another page. So what I would love to do is create a URL/link to the dashboard and add a parameter with the name of the respective group to the URL and have the dashboard filter on that.
Is there a way to do this?
Best answer by Saish RedkarView original
From what I know, if you embed a dashboard via iframe,etc in your custom page/website, the dashboard filters won’t be available to query on in the embed view. The embed portion is normally view only.
So the only way to query on your account group would be to use that as a dashboard filter parameter on the actual dashboard link.
Let me know if I interpreted your use case correctly. Hope this helps.
Thanks Saish. Perhaps I’m missing something, but I don’t quite get it to work.
Imagine there is the dashboard
I’d like to add something like
To filter the report by the user id.
Unfortunately, that isn’t possible for any dashboard link.
Query parameters as filters will work only in the dashboard UI and not dynamically with the URL.
Moreover, any change or filter application to the static dashboard in the UI modifies the URL to a new one -
However, if you are looking to create any particular chart type dynamically with some parameters and want the resultant graphs in JSON format, then you can take a look at the Dashboard REST API .
The naming is confusing here since it’s meant for charts and not a “dashboard” in particular.
Hope this helps.
Thanks for responding
@Saish Redkar ! That’s correct. The Dashboard Rest API can help you programmatically modify some charts, but we don’t have this capability with a dashboard of charts yet.
@ttan, I just did. Hope this helps.