I am using TIBCO Jaspersoft® Studio 6.11.0 - Visual Designer for JasperReports 6.11.0. on Windows 10.
I have a simple one page report. It has a single <detail> element which contains a single <band> element.
If I create a variable - call it v1- and then drop that on my form and run it, it works fine.
If I create a variable - v2 - and then use that in the expression for v1, v1 produces null.
When I go to the source I see that v2 comes after v1.
If I move v2 before v1 in the source then v1 works as expected.
When placed on a form all variables have an Evaluation Time of "Now". I have tried some of the other evaluation times but they make no difference.
If a variable uses another variable, that other variable will be of use only if it has a value. If my variables use other variables in their expressions it will be a real challenge on a complex form to ensure correct evaluation order.
Is this a known problem in Jasper? Nothing I have seen in the documentation or online talks about this.
Am I doing something wrong? Is there a workaround?
any help greatly appreciated,