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.
Best Open Source Business Intelligence Software Helical Insight is Here
A Business Intelligence Framework
In case if you have any queries please get us at support@helicaltech.com
Thanks,
Neha Koyalwar
.jrtx files How to apply jrtx style for static text in jrxml file How to create and use styles in Jaspersoft Studio How to Use .JRTX Files to Apply Different Styling Based on Parameter Value ireport jasper server jasperreports/JRTemplate.java at master jaspersoft jaspersoft report Jrtx styles in Eclipse and tomcat Jaspersoft Community Templates Sample - JasperReports 4.6.0
Subscribe
Login
0 Comments