Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to change default style of AdHoc based report


    akonkin
    • Features: Ad Hoc Product: JasperReports® Server

    Question:

    How to change default style of AdHoc based report


    Answer:

    If you would like to change default style of one single report:

    You can apply your custom formatting to AdHoc View based report via the JIVE Formatting menu that is available when you click on the table's header.

    Please see the screenshot below:

    2015-08-25_1651_1.png.c92aaa4a776e247d52ef055d77e9015a.png

    After applying a custom formatting you can save your report under the different name.

    Please refer to the documentation below for the detailed information regarding this feature:

    TIBCO JasperReports Server User Guide v6.1.0 - Page 52/3.3 Getting New Perspectives on Data

    If you would like to change default style for all newly created AdHoc based reports:

    Let's consider one practical sample that could help you to clarify how to modify the default template for AdHoc Reports.

    Task:

    We should change the default color of AdHoc Table's column header to bright green.

    Theoretical part:

    AdHoc feature by default to render reports uses Actual Size template.

    AdHoc templates are stored in the folder: /public/templates

    2015-08-26_1134_2.png.7465c9a32640b34f3f7470c642b9cbbe.png

    The name of the physical file that represents Actual Size template is : /public/templates/actual_size.510.jrxml

    2015-08-26_1135_3.png.ea37c7a3fedf89e1a0b3062e42a36e8d.png

    To change the color of the default template and apply it to a newAdHoc Report we should:

    • run JasperSoft Studio

    • connect to JasperReports Server and open in Studio the physical file that represents default template (actual_size.510.jrxml)

    • then we should open the style that contains the configuration of Table's header text style and modify color.

    • Please refer to the screenshot below:

    2015-08-26_1125_4.png.4876f292463f243d09219c4c8d5e4151.png

    • - save the default template file back to the Repository (this could be done by clicking Save button)

    • - create AdHoc Report from the desired View and save it. Please see the result below:

    2015-08-26_1128_5.png.d4311f61eb4f97b31c131dae7bfc516e.png

     

     

     

     

     

    2015-08-25_1651_1.png.02862c3fe0a23d2872b0c5f05e3d2073.png

    2015-08-26_1134_2.png.3261489517cd58fb22d9e51dd06caa2b.png

    2015-08-26_1135_3.png.45190bc7a9b118570e10ab909f0e2051.png

    2015-08-26_1125_4.png.b3ba893e58194748da021f8644cd3c97.png

    2015-08-26_1128_5.png.10c3e29fa6dbf6d8684cb889cac8a521.png


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