cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

I set up bookmark functionalities and tried leveraging the "isDefault" flag as shown here in the Analytics Designer API Reference Guide.

However a "default" bookmark does not load when opening the application.

When loading the "default" bookmark in the "OnInitialization" Script, the Application goes into a loop as it's initializing again when applying the bookmark.

So my Question is: How was the default bookmark intended to work ?

0 Likes
View Entire Topic
Susanne_H
Product and Topic Expert
Product and Topic Expert
0 Likes

Dear fa_no,

I'm not familiar with the 'Default Bookmark', but we also offer the bookmark option within our application and we handle the onInit call as follows:

// LOADS THE COCKPIT 
if (Application.getMode() === ApplicationMode.Present){
	// DO SOME INITIAL SETTINGS
}

// RELOAD APP WITH MODE PRESENT
// WITHOUT BOOKMARK
else if (Application.getMode() !== ApplicationMode.Present && BookmarkSet_UserSettings.getAppliedBookmark() === undefined){
	NavigationUtils.openApplication(Application.getInfo().id, UrlParameter.create("mode", "present"), true);
}
// WITH BOOKMARK
else {NavigationUtils.openApplication(Application.getInfo().id,[UrlParameter.create("bookmarkId",BookmarkSet_UserSettings.getAppliedBookmark().id),UrlParameter.create("mode","present")],true);}

Maybe this helps you to solve your issue.

Best regards
Susanne