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:
References
Customizing JavaScript Files in JasperReports Server
ref case - 01779385 akovach
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 accountSign in
Already have an account? Sign in here.
Sign In Now