I have a main report and a subreport and i want to hide a textfield based on the value returned by the subreport.
How to achieve this in jasper ireport?
For this case, you need to execute that subreport before the textfield, then only you will get correct return value .
And in the properties of SubReport to can find the ReturnValues tab, there you need to add SubReport Variable and Main Report Variable abd calucation type nothing.
While creating the variable in main report the caluclation type should be System.
Hope this will work :)