Jump to content
  • Change the default local in the schedule output options


    Anuja Vilas Bhujbal
    • Features: Scheduler Product: JasperReports® Server

    Problem:

    In the Output option of the schedule editor, when we try to create a new schedule we can the output locale is seen as the default. Sometimes, it can be confusing to users and you might want the output locale to be seen same as that used when you log in to the Jasperserver. 


    Solution: 

    To achieve this requirement, you will need to make changes in the <tomcat>jasperserver-proscriptsruntime_dependenciesjrs-uisrcschedulertemplateeditoroutputTabTemplate.htm file. Please locate the below line in the file and remove it or comment it out.

     

    <option value="" selected="">({{- i18n["report.scheduling.job.edit.output.locale.default"] }})</option>

     

    Below is the screenshot of the default output options tab of the Jasperserver schedule editor:

    output_locale_before.png.58fa16b398c71765c9f12a8dc2504e12.png

     

    After making the changes, the output locale will be seen as below as I had logged in to the jasperserver with en_GB locale:

    output_locale_after.png.fcff54f87a576e909bf91022c837047d.png

     

    Also, as we are making changes in the javascripts folder, you will need to optimize the folder by referring to the below link if your jasperserver uses optimization.

     

    https://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v790/customizing-javascript-files

     

    For testing purpose, you can turn off the optimization by making the setting javascript.optimize=false in the

    <js-webapp>/WEB-INF/js.config.properties file or by adding _opt=false to your Jasperserver URL. If the test works for you, you can optimize files altogether later using the documentation. 


    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...