How can I get an element from a subreport?
Posted on July 3, 2015 at 5:46am
Hello,
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.
Thanks.
orebil
Joined: Jul 23 2009 - 5:55am
Last seen: 1 week 1 day ago
Posted on July 3, 2015 at 6:10am
Joined: Jul 3 2015 - 2:58am
Last seen: 1 month 1 week ago
Posted on July 3, 2015 at 6:27am
Hello,
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.
orebil.
Joined: Jul 23 2009 - 5:55am
Last seen: 1 week 1 day ago
Posted on July 5, 2015 at 8:22pm
JRSubreport is inherits from JRElement.
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 years 3 months ago
Posted on July 7, 2015 at 10:04pm
Hello,
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.
Thanks.
Joined: Jul 23 2009 - 5:55am
Last seen: 1 week 1 day ago
Posted on July 9, 2015 at 1:47am
Hello,
any other ideas?
orebil
Joined: Jul 23 2009 - 5:55am
Last seen: 1 week 1 day ago