Hi all, we are using the Gooddata Cloud as embedde...
# gooddata-cloud
g
Hi all, we are using the Gooddata Cloud as embedded with Iframes in our portal. We are trying to show the "Save View" part to our users but we do not want to show the filter bar. The reason for this is that we have wrapped the filter bar with our own filters (portal defined). Is there a way to just show the "Save view" without showing the filter bar ?
i
Hello Goran, thank you for your message. Could you please explain why you would like to implement what you asked so we can assess and assist better? Thank you.
g
hi @Ismail Karafakioglu we want to allow our users to create and/or access saved views, but the saved views button is within the filter bar. We are purposely hiding the filter bar in the embedded Iframe since we have our own defined filters. Is there a way to show the saved views and not show the filters?
i
Hi Goran, Thank you for your explanation. Unfortunately, save view, like you said is part of filterBar so when we disable it, it disables all the other components. One workaround that can work is using the
?hidefilters=filterId1,filterId2
which can be found here. By hiding all the filters, the end users will not be able to see the filters but because filterBar is still active, you can still access the saved view component. Would that work for you? Looking forward to your answer. Thank you.
g
Hi @Ismail Karafakioglu thanks for the reply. I've tried this one already but it doesnt work. I guess I am using the wrong filterids. Should I use hideFilters=Date to hide the date filter?
i
So to reach the id required, we need to do some API calls. The first API call is made to learn filter context id
<https://www.gooddata.com/api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId}>
after obtaining filter context id, we need to get specific filter id by following API call:
<https://www.gooddata.com/api/v1/entities/workspaces/{workspaceId}/filterContexts/{objectId}>
After getting filter id, we can use
?hidefilters=filterId1,filterId2
in the url to remove them. For example when I post use Iframe like so
<iframe src="<https://ismail.internal.cloud.gooddata.com/dashboards/embedded/#/workspace/{my-workspace-id/dashboard/{my-dashboard-id}>" height="700px" width="100%" frameborder="0"></iframe>
I get following result, which is showing all the filters but after finding out which filter I want to remove, i can use
<iframe src="<https://ismail.internal.cloud.gooddata.com/dashboards/embedded/#/workspace/{my-workspace-id/dashboard/{my-dashboard-id}?hidefilters=region>" height="700px" width="100%" frameborder="0"></iframe>
I can see that region filter is removed. Please let me know if you have any questions.
g
great, I will try it and let you know
thanks