Change the Default Selection in Jasper Scheduler

Posted on by By admin, in Jaspersoft | 0

Prerequisites : Jasper Server 6.4.0 Enterprise

Requirement : Set the default selections for “Overwrite Files” and “Output to Repository” to “unchecked” on the output option tab for scheduler

D3 Charts

Resolution:

To achieve above changes we need to modify java script file “jobModel.js” which locates in below location

 
jasperserver-pro\scripts\bower_components\jrs-ui\src\scheduler\model directory.

In this file we need to change the createFromUri.repositoryDestination class mutator from saveToRepository: true to saveToRepository: false and overwriteFiles:true to overwriteFiles:false

D3 Charts

Save the changes and test the script.Basically jasper has optimization java scripts ,so first we need to check the change without optimizing the scripts and once it looks fine we need to optimize the scripts

To check the script without javascript optimization:

  1. Edit “js.config.properties” file under \jasperserver-pro\WEB-INF directory, and change the following property setting from javascript.optimize=true to javascript.optimize=false
  2. Save the change;
  3. Restart JasperReports Server;
  4. Clear browser cache;
  5. Test application to see the effect of your customization.

D3 Charts

Once we are satisfied with the Result ,user should then run optimization script in Jasper server

User can find “Customizing JavaScript Files” information from this link:

Customizing JavaScript Files

Once running of Optimization scripts is done then revert the changes in js.config.properties files and test the changes once again

Thanks,
SatyaGopi
BI Developer
Helical IT Solutions Pvt Ltd

logo

Best Open Source Business Intelligence Software Helical Insight Here

logo

A Business Intelligence Framework


logo

Best Open Source Business Intelligence Software Helical Insight is Here

logo

A Business Intelligence Framework

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments