Prerequisites:
Jasper Server 6.4.0
Database: Foodmart
In this blog, we will learn to use .JRTX files to change the background color of group header based on parameter Value.
Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.
- Created a sample report with stateName parameter which displays Storewise Sales and Cost

- Create Template folder with three .jrtx files to change the group header color, in jaspersoft workspace

- Apply different colors to group header in CA.jrtx,WA.jrtx accordingly


- Add Style template reference in the report and select the workSapce resource (If template folder is not present in workspace then select Absolute Path and select the one of the .jrtx file from them in the file system)

- After adding the .jrtx file in style edit the source expression of a template and.Pass the Parameter expression in the source expression

- Apply the group header style to stateName field of state group

- Deploy the report bypass and pass the Value to stateName Parameter the output will be
— For Parameter value CA

— For Parameter value WA
Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.

In case if you have any queries please get us at support@helicaltech.com
Thanks,
Neha Koyalwar
Free Open Source BI Platform

- AI-Powered Analytics
- Embedded Analytics
- Single Sign-On (SSO)
- Multi-Tenancy
- Paginated Canned Reporting
- Interactive Dashboard
- White Labeling
Subscribe
Login
0 Comments
Oldest