How to hide a textfield in main report based on the value returned by subreport in jasper ireport

0

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?

dkk9034_1's picture
Joined: Mar 22 2016 - 8:12am
Last seen: 2 years 12 months ago

1 Answer:

0

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 :)

Sukanya Parisa's picture
Joined: Dec 5 2013 - 10:29pm
Last seen: 2 years 4 months ago
Feedback
randomness