Jump to content
We've recently updated our Privacy Statement, available here ×
  • Disable "Include Dependencies" Property in Repository Export By Default


    akovach
    • Features: Repository Version: v7.1.1 Product: JasperReports® Server

    Requirement

    Set "Include dependencies" property to false by default when exporting from repository


    Solution

    This requirement can be achieved by changing <js-webapp>/scripts/bower_components/jrs-ui/src/tenantImportExport/export/model/ExportModel.js:

    ExportModel = BaseModel.extend({
            defaults: {
                "uris": ["/"],
                "fileName": "export.zip",
                "encryptFile": false,
                "includeRepositoryPermissions": true,
                "includeScheduledReportJobs": true,
                "includeDependencies": true,
                "includeFullResourcePath": true
            }
    

    So the block above should look like:

    ExportModel = BaseModel.extend({
            defaults: {
                "uris": ["/"],
                "fileName": "export.zip",
                "encryptFile": false,
                "includeRepositoryPermissions": true,
                "includeScheduledReportJobs": true,
                "includeDependencies": false,
                "includeFullResourcePath": true
            }
    

    Then user need to rebuild JavaScript files as described in the article below:

    Customizing JavaScript Files in JasperReports Server

    Or user can set javascript.optimize=false in the <js-webapp>/WEB-INF/js.config.properties file and then reloading the web application. In this case JasperReports Server will use Scripts, instead of optimizedScripts.


    Result

    This change will result in the following output of Repository Export Dialog Window:

    repository_export_dialog_window.png.89d0c26d467b07ddecaff7c67a3a8ddc.png


    References

    Customizing JavaScript Files in JasperReports Server

    ref case - 01779385 akovach


    User Feedback

    Recommended Comments

    There are no comments to display.



    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...