These call returns some objects with state and bookmark name
// Capture the current view
this.embedReport.bookmarksManager.capture().then( capturedBookmark =>
{
// Applied previously captured state
this.embedReport.bookmarksManager.applyState(capturedBookmark.state).then( r =>{
debugger;
}).catch( err => {
console.log("Error while capture bookmark" + err);
});
});
But when I call getBookmarks, it doesn't return any captured bookmarks. This getBookmarks only is not working. We are able to apply bookmark using captured state in different session.
Do you know how we can get this getBookmarks API working?
this.embedReport.bookmarksManager.getBookmarks().then( bookmarks => {
bookmarks.forEach( b => console.log("Bookmark Name:" + b.name + ", State:" + b.state));
}).catch( err => {
console.log("Error while getBookmarks Error:" + err);
});