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

View Entire Topic
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