Hi, is there an equivalent to `newPositiveAttribut...
# gooddata-ui
j
Hi, is there an equivalent to
newPositiveAttributeFilter
when embedding an iframe to embed a dashboard? We want to show a dashboard which is filtered to include only a subset of the data
i
Hey Jordan, May I know what is your use-case here, please? Do you want to securely restrict the data or just filter them out?
j
Just filtering them out is ok for this use case, but we don't want to give users the ability to see/change the filter for this field on the embedded dashboard
Essentially we just want a view for a subset of data based on an attribute in the dataset corresponding with where they have navigated within our UI.
r
Hi Jordan, Radek from the Technical Support team here! Please accept our apologies for the delay, I'm checking and should be able to give you more pointers during today 🙂
So on "corresponding with where they have navigated within our UI" - does this mean that the dashboard will always be loaded, but the users will essentially be selecting different filters to apply? If that's the case, you could use PostMessages to send the command to the dashboard - more info here: https://www.gooddata.com/docs/cloud/embed-visualizations/iframes/embed-dashboard-via-iframe/#EmbedDashboardsUsingIframes-setFilterContext
j
does this mean that the dashboard will always be loaded, but the users will essentially be selecting different filters to apply?
Yes, essentially the filtering would take place in-app, and we want to show the users a dashboard relevant only to the subset they have selected in-app, without giving them context in the dashboard that they have that subset selected (they already see this via the UI out side the iframe). More concretely, users would navigate to a part of the app to view one of their clients' data, and should see dashboards only for that client. Does filtering applied via PostMessages meet the requirement that the user not be able to see that this filter was applied in the dashboard?
r
You could achieve hiding the filters using the embedding configuration options - however, one thing that I do have to point out is that applying filters in this way is not considered a security feature, and shouldn't be used as the only way to prevent users from seeing data they are not meant to see! For that, the official options are the Workspace and User Data Filters 🙂
j
Thanks Radek. We did try those configuration options, but were not able to apply the filters and hide them at the same time