cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Embed mode not working for optimized story

anthonysc
Participant
0 Kudos
1,497

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
Participant
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
Participant
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
Participant
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 

Alex_B
Participant
Alex_B
Participant
0 Kudos

@Susanne_Helbig So it is not possible to set the default mode to embed without loading twice or changing url parameters?
I want that the users can only open the story in embed mode by clicking on Recent Stories in SAC Home Screen. It should be a adjustable feature.

Susanne_Helbig
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @Alex_B,

as already mentioned by William, to open story in embed mode, you either can put embed keyword into URL or open the story in embed mode via script.

If you want to open the story via the "Recent Stories" section, I guess the only way is to use the mentioned code in the onInit function, but this will result in loading the story twice.

I'm not from SAC development, so please excuse my question:
did you try out the present mode? 
Would this mode fit to your needs?

Best regards
Susanne

 

 

Alex_B
Participant
0 Kudos

@Susanne_Helbig

Ok thanks. Present mode is something completely different and no option for me. In my opinion the Embed mode should the standard mode in SAC. The view mode with toolbar and filters only adjustable for specific users, so the present mode.