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

SAC Bookmarks - Bookmark+embed mode possible?

Alex_B
Participant
0 Likes
780

Hi,

in my OnInit Event I use this code to open my last saved bookmark (very annoying that it loads twice...)

var bookmarks = BookmarkSet_1.getAll();
if ((BookmarkSet_1.getAppliedBookmark() === undefined) && (bookmarks.length > 0)) {
var bookmark = bookmarks[0];
BookmarkSet_1.apply(bookmark);
}

Is it somehow possible to open the bookmark in embed mode? The goal is using last saved bookmark and embed mode together.

It tried this code in several ways, but it never opens the last bookmark embedded.

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

Accepted Solutions (1)

Accepted Solutions (1)

Susanne_Helbig
Product and Topic Expert
Product and Topic Expert

Hi @Alex_B,

I do something similar with my story and I'm using the following script:

NavigationUtils.openApplication(Application.getInfo().id,[UrlParameter.create("bookmarkId",BookmarkSet_UserSettings.getAppliedBookmark().id),UrlParameter.create("mode","embed")],false);

This should open the the applied bookmark in mode embed.
I hope this helps!

Best regards
Susanne

Alex_B
Participant
0 Likes
@Susanne_Helbig Thx a lot Susanne.

Answers (0)