Use Pattern as : $#,##0.00
Tags:
iReport
Jasper Studio
Jasper Studio
This blog is home to share my experiences, views, learning and findings on open source business intelligence tools like Jasper report. This block cover information of Jasper iReport as well jasper server detail.
I am getting error in subsequent report. if I use “common table expression” in MY/MS sql query in Jasperserver. for example: declare @var integer or with a as ( select…) Solution for this problem: Change the below parameter in /jasperserver-pro/WEB-INF/classes/esapi/security-config.properties to generate the report. security.validation.sql.on=true and Go to // WEB-INF/classes/esapi/validation.properties Find property: Validator.ValidSQL=(?is)^\\s*(select)\\s+[^;]+;?\\s*$ And change in to: Validator.ValidSQL=(?is)^\\s*(select|with|declare)\\s+[^;]+;?\\s*$ If you want to use other sql constructions (in start of query string), just add to regular expressions your sql command.
Fetch Last 4 Characters From String
$V{VARIABLE_NAME}.substring(Math.max($V{VARIABLE_NAME}.length() - 4, 0))