prusyn
-
Posts
45 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Entry Comments posted by prusyn
-
-
If you want to use calculations, you have to use Numbers, at very least variable type should be Integer, not String, cause SUM function returns Number value.
-
Your fromVarField3 variable is type of String, but is set to calculation="Sum". Why? What is the logic behind that?
With its current implementation it will not work. Can you please download the sample attached to the article and check it?
-
Can you provide jrxml file of the report you have issues with?
How to pass variable value from sub dataset to main dataset
in Best Practices
Posted
It is applicable for all datatypes supported by JasperReports AFAIK. The reason why it didn't work for you was because you tried to use calculation on variable that does not work on Strings and only works on Numbers: https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v750/other-properties-variable