on ‎2024 Jun 26 3:35 PM
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);
}
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 14 | |
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.