Jump to content
Changes to the Jaspersoft community edition download ×
  • Adding % symbol to calculated measure in ad hoc editor

    Friendly User
    • Features: Ad Hoc Product: JasperReports® Server


    You have created a calculated measure that calculates the percentage. You want to add % symbol to the display value.


    To achieve this we will need a custom ad hoc mask. To add new masks to the list of ad hoc data formats please do the following:

    1. Go to {JRS WAR file}/WEB-INF/bundles

    2. Edit adhoc_masks.properties

    3. Add new masks to int and decimal like this:

      ADH_100_MASK_int_4 = #%
      ADH_100_MASK_dec_5 = #%
    4. Restart server

    Now in ad hoc editor we will be able to right click on the field in canvas, Change Data Format and select the format we just added with the percent symbol.

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