on 2021 May 07 11:27 AM
Hi,
I am creating an application in the SAP Analytics Designer, and seem to be unable to hide the toolbar in present mode (when I run the application). Whenever I hover on top of the window, the toolbar appears as shown below.
Is there any way we can hide this toolbar at the top, and not have it show up on hovering?
Thanks and regards,
Kavya Kathuria
Request clarification before answering.
Dear kavya.kathuria,
we had a similar requirement and solved it with 'mode=embed'.
To open the app in mode embed, we added the following code in the onInitialization method
if (Application.getMode() !== ApplicationMode.Embed){ NavigationUtils.openApplication(Application.getInfo().id, UrlParameter.create("mode", "embed"), false);
This reloads the app in mode embed and the toolbar will not appear.
This can also be done manually during view time of your app. To do this manually you have to add
?shellMode=embed
into the URL e.g.:
https://cont-dev-cf.eu10.sapanalytics.cloud/sap/fpa/ui/tenants/95cbd/app.html#/analyticapp?shellMode=embed&/aa/F31D62E4FB3AA2584217F35CAED18C1F/?mode=present&view_id=appBuilding
Best regards
Susanne
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Susanne,
This is exactly what I am looking for. It works but when the application launches, it loads the page first and then reloads the page again. It looks like there is an issue but there is not. How do I resolve this?
Thank You!
Edit: Looks like under customize link there is a new parameter section where mode=embed can be added. This resolves my issues.
Is there any fix solution for end users?
After writing code in onInitialization, it runs two times in present mode, 1st time with view and other time with embed.
Please help here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
A bit off topic but does anybody know which functions are supported in embed vs view mode?
e.g. I found that go to links only works in view mode
Regards
Yoav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The following has solved my problem. Now story opens in present mode without any toolbar.
.../app.html#/story?shellMode=embed&/s/603D05C0D3A68492A8D3F9CF3CF46D/?mode=embed&pageBar=disable
Best regards
Tariq
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Susanne,
I'm trying your suggested "?shellMode=embed" in the URL for a story but it is not working.
Inserting ?shellMode=embede automatically change "?view_id=story&mode=present" to "?view_id=story&mode=embed".
That is, it changes present to embed as well.
Appreciate if you, or anyone, have any suggestion to resolve this issue.
Best regards,
Tariq
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the suggestion Kavya.
I modified
.../app.html#/story?shellMode=embed&/s/EEF00D05C0D4D842E635FAA1A53F1CD8/?view_id=story&mode=present
to
.../app.html#/story?mode=embed&shellMode=embed&/s/EEF00D05C0D4D842E635FAA1A53F1CD8/?view_id=story&mode=present
but still mode=present in the end changes to mode=embed when I try to load the story, i.e. the story does not open in fullscreen mode.
.../app.html#/story?mode=embed&shellMode=embed&/s/EEF00D05C0D4D842E635FAA1A53F1CD8/?view_id=story&mode=embed
Have I added "?mode=embed&shellMode=embed" correctly?
User | Count |
---|---|
89 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.