on 11-10-2023 11:27 AM
Hi all,
Just looking for a bit of syntax help,
Using an optimized story I'd like to be able to hide the page bar menu when the page initialises,
the code below works if I paste it into the browser - the story opens with all menus removed.
https://my-tenant.cloud.sap/sap/fpa/ui/tenants/13013/app.html#/analyticapp?shellMode=embed&/aa/6D839...;
Just wondering how I get it to work in a script, just can't seem to get it right when using the usual code to set view/embed etc with the NavigationUtils / URL create parameters.
For reference launching a story/app in embed mode I use:
NavigationUtils.openApplication(Application.getInfo().id,UrlParameter.create("mode", "embed"), false);
resolved it using the following syntax
var APP_ID=Application.getInfo().id;
if (Application.getMode() !== ApplicationMode.Embed){
NavigationUtils.openUrl("https://my-tenant.hcs.cloud.sap/sap/fpa/ui/tenants/13013/app.html#/analyticapp?shellMode=embed&/aa/"+APP_ID+"/?pageBar=disable",false);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.