msiljegovicgmail.com Posted October 1, 2016 Share Posted October 1, 2016 I have mysql database and jasper server 6.1 connected. When I execute report(containing about 2000 pages) through jasper server web ui, it returns first page after few seconds and continute to load data in behind till it count all pages. And that is fine, expected behavior. However, visualize does not work in that manner. It shows first page in same time when changeTotalPages event fire. changeTotalPages: function(pages) { alert(pages) }[/code] Why is this happening with mysql db? I know visualize.js should fetch first page as soon as possible and then trigger subsequent status requests to the server to fetch totalPages. Does this link solves issue here. Anyone has experience? Thanks Link to comment Share on other sites More sharing options...
dpetzold Posted November 10, 2016 Share Posted November 10, 2016 You can use a special event ‘pageFinal’ which triggers when first page is ready. events: { pageFinal: function(el) { alert("Page is final!", el); } }, See the following example... http://jsfiddle.net/Suzfd/11/ With this the first page will show before all report pages are ready. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now