Hello everyone! I'm using the embedded dashboard i...
# gooddata-platform
l
Hello everyone! I'm using the embedded dashboard iframe in my app, and want to hide the Save as new and Delete buttons, exactly like the topic Advanced configuration options on doc says. But when I add the params
?hideControl=[deleteButton,saveAsButton]
, these buttons are still visible 🤔 . Other configs like
?hideControl=[topBar]
are working. Could you help me?
m
Could you please provide the complete URL you’re using to hide this?
l
/dashboards/embedded/#/workspace/ifvqlx7b675wcp5oex404x1qzaflx7rs/dashboard/aeq0Pvyq8Ob4?showNavigation=false&hideControl=[deleteButton,saveAsButton]&includeObjectsWithTags=[crm,standard]
Do you need something else? @Michael Ullock
m
This is working for me:
/dashboards/embedded/#/workspace/qqpd81ppn2zd8jjk3xmpishnuiy95vu8/dashboard/aemNoojieCWb?showNavigation=false&hideControl=[deleteButton,saveAsButton]
Could you try without the tags and see if works please?
l
Same problem
Also I tried only with
?hideControl=[deleteButton,saveAsButton]
and got the same
Were you able to replicate the problem there?
m
I am not able to replicate the issue - As I mentioned, the this syntax is working as expected for me:
/dashboards/embedded/#/workspace/qqpd81ppn2zd8jjk3xmpishnuiy95vu8/dashboard/aemNoojieCWb?showNavigation=false&hideControl=[deleteButton,saveAsButton]
Just to make sure we are on the same page - The saveAsButton removes the option from here in the dashboard:
l
"Salvar como novo" is "Save as new"
m
It seems like you have some custom button or implementation in place on your dashboard(s) - As this is not normally where “Save as” button is located, and this would make sense why it isn’t working.
I have just reviewed your workspace: ifvqlx7b675wcp5oex404x1qzaflx7rs - and I see that you’re a direct customer of “TOTVS”. So yes, it would seem that they have some customer implementation involved here.
As we (GoodData) have no insight into this customisation they have in place for your company - You’ll need to reach out to TOTVS directly to assist with this
l
Ok Michael, I will contact they to see what they can do. Thank you!
m
You’re welcome - My apologies I could not be of more help this time 🙂
l
cc @DIEGO MATOS GUEDES
d
Hello Michael, hope you're doing well. On Luis's environment, the "Save as new" button isn't customizable: it is the exact same button that appears right next to your screenshot, when the user tries to make a copy of a locked dashboard. I did some testing on my end as well and, unfortunately, the "save as" button is not being hidden by the iframe command. The filter bar and the topbar (which shows the dashboard's name) does work, but I believe Luis would like to hide the copy button from everyone with dashboard access, even valid editors
m
Hello, I wanted to let you know that I can reproduce the issue you’re seeing. It happens when a user with the Editor role tries to access an embedded dashboard using the parameter
?hideControl=[deleteButton,saveAsButton]
. This works just fine for dashboards that aren’t locked or part of an LCM hierarchy, but if the dashboard is locked or belongs to an LCM hierarchy, the “Save as new” button still shows up for Editors. If you change the user role to Admin, the parameter works as expected and hides those buttons, but I understand that giving everyone Admin access isn’t really what you want. As a workaround, which Diego mentioned, you can try using
?hideControl=[topBar]
. This hides the save button and all the other options at the top of the dashboard. It might not be the perfect look, but it does the job of hiding those controls from Editors. With that said, I’ll make sure to pass this on to our developers for them to take a closer look, although please understand that I can’t give you an exact ETA for any update.