Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to fix 2 common issues withVisualize.js 6.0 (visualize is not defined, problem with pagination)


    akonkin
    • Version: v6.0.0 Product: Visualize.js

    Problem 1:

    We have got the error when tried to run visualize.js v. 6.0.0 based solutioin. Visualize is not defined. Please refer to the screenshot below:

    [toc]

    error_1.png.1e77125d64bea3220fe90cb674e117d6.png

    Solution to the Problem 1:

    The error is caused by a bug in the optimized version of visualize.js v. 6.0.0.

    Possible workarounds for this bug:

    1. Turn off JavaScript optimization by add following parameter to URI _opt=false so your URI for visualize.js should look like: https://localhost:8080/jasperserver-pro/client/visualize.js?logLevel=debug&_opt=false

    2. Give a try to re-run our JavaScript optimizer, please find the details here: http://community.jaspersoft.com/documentation/jasperreports-server-ultimate-guide/v561/customizing-javascript-files

    3. This bug was fixed in the v. 6.1.0, the upgrade to the version above can also help you to fix this problem


    Problem 2:

    It seems that setting the paginated flag has no effect. We are reasonably certain it is a valid parameter. Please see the code snippet below:

    function exportReport(){
        $scope.selectedReport.reportObj.export({
            outputFormat: selectedOption.format,
            paginated: false
        }
    )

    Solution to the Problem 2:

    Pagination property is deprecated and affected by the bug.

    In order to deal and manage pagination feature of your report, I would recommend to perform the upgrade to the v. 6.2.0 of the product and use a bit different property (ignorePagination) to disable pagination in your report.

    For the details please refer to the community article: http://community.jaspersoft.com/wiki/visualizejs-jasperreports-server-620-and-pagination-feature

     

     

    error_1.png.57dd4d238649e11a13b886f4b741c5c9.png


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...