You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. With some reports that has bookmarks,
when the report is loaded, visualizejs executes bookmarksReady callback, but sometimes not.
The only way to get the bookmarks event call is changing to the next page.
This is our piece of code
returnnewPromise(function(resolve,reject){self.resetProps();varresource=self.lastDrillDown ? self.lastDrillDown.resource : self.resourceType;visualize({},function(v){self.report=v.report({resource: resource,params: self.authParams,container: "#".concat(self.elementRef),scale: self.scale,autoresize: true,runImmediately: false,loadingOverlay: true,events: {bookmarksReady: function(bookmarks){/*this is not called always when you render the report for the first time, sometimes you need to change to the next page to force the execution of bookmarksReady callback */returnself.bookmarks=bookmarks;},changeTotalPages: function(pages){returnself.pagination.totalPages=pages;},reportCompleted: function(){self.rendered=true;self.loading=false;}},linkOptions: {events: {click: function(event,link){}}}});returnresolve(self.report);});});
The text was updated successfully, but these errors were encountered:
joni2back
changed the title
Visualize doesn't get bookmarks
Visualize doesn't get bookmarks at first rendering
Dec 18, 2019
Hi. With some reports that has bookmarks,
when the report is loaded, visualizejs executes
bookmarksReady
callback, but sometimes not.The only way to get the bookmarks event call is changing to the next page.
This is our piece of code
The text was updated successfully, but these errors were encountered: