How can I get an element from a subreport?
Posted on July 3, 2015 at 5:46am
is it possible to get an element (e.q. JRTextfield) programmatically from a subreport?
I know I can use the method "JRBand.getElementByKey(...)" to get an element from a band. The band can I get when I use the method "JasperReport.getDetailSection().getBands();"
But I would get an element from a subreport and not from the master report.
Posted on July 3, 2015 at 6:10am
Posted on July 3, 2015 at 6:27am
thank you for the answer, but this isn't the solution for my problem. :-)
II wouldn't get a return value from a subreport but I would get an element from the subreport to change e.q. the markup of a JRTextfield.
Posted on July 5, 2015 at 8:22pm
JRSubreport is inherits from JRElement.
Posted on July 7, 2015 at 10:04pm
I know that JRSubreport is inhertis from JRElement, but this doesn't help me.
I wouldn't change the subreport I would change an element e.q. JRTextField in the subreport.
Posted on July 9, 2015 at 1:47am
any other ideas?