cancel
Showing results for 
Search instead for 
Did you mean: 

Embed mode not working for optimized story

anthonysc
Explorer
0 Kudos

Hi,

We are using stories with optimized design experience. We want to set them in Embed mode. We did that in 

View Time Toolbar Settings.

anthonysc_0-1713944082690.png

Unfortunately, when we apply and save the story, the embed parameter is reset to view and story is launched in view mode.

Have I missed something ?

Thanks in advance

Mat

Accepted Solutions (1)

Accepted Solutions (1)

William_Yu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi anthonysc

   I believe the screenshot you show is for you to set the toolbar in different mode, it's not setting the story to be opened in embed mode by default. To open story in embed mode, you either can put embed keyword into URL or open the story in embed mode via script. 

Best regards, William 

anthonysc
Explorer
0 Kudos

Hi William,

It doesn't work.

Here is the original url : 

Https://xxxxxxxxxxxxxxxxxxx/story2&/s2/F1688E05A19DBEA8166F710B4AB88BB4/?mode=view

If I replace ?mode=view by ?mode=embed the system overwrites it and the url remains Https://xxxxxxxxxxxxxxxxxxx/story2&/s2/F1688E05A19DBEA8166F710B4AB88BB4/?mode=view.

If I replace   ?mode=view by ?shellMode=embed the system overwrites it and the url becomes Https://xxxxxxxxxxxxxxxxxxxxxstory2&/s2/F1688E05A19DBEA8166F710B4AB88BB4/?shellmode=embed&mode=view

Best regards

 

William_Yu
Product and Topic Expert
Product and Topic Expert
0 Kudos
Have you followed the help on this? Seems your URL is different from what specified there. https://help.sap.com/docs/SAP_ANALYTICS_CLOUD/a4406994704e4af5a8559a640b496468/fe8d560fce4f4fdd84454...
anthonysc
Explorer
0 Kudos

Hi William, you are right it works if I put shellMode before S2 instruction :

https://xxxxxxxxxxxxxxxx/app.html#/story2?shellMode=embed&/s2/storyID

 

thanks

Answers (1)

Answers (1)

Susanne_Helbig
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear @anthonysc,

you can use script in the onInit() function of your story to reload it in mode embed

if (Application.getMode() !== ApplicationMode.Embed){
NavigationUtils.openApplication(Application.getInfo().id, UrlParameter.create("mode", "embed"), false);
}

I hope this helps.

Best regards
Susanne

anthonysc
Explorer
0 Kudos

Dear Susanne,

thanks for your answer.

It works but it reload twice the story wihich is not acceptable for users.

I don't understand why the parameter is not taken into account.

Best regards

Susanne_Helbig
Product and Topic Expert
Product and Topic Expert
0 Kudos

@anthonysc did you set the parameter as described in the SAP Help portal?
Display Parameters