miles Posted May 4, 2007 Share Posted May 4, 2007 Hi all,I have a subreport that is being passed a JRBeanCollectionDataSource. I can reference properties in each element just fine using the $F{foo} syntax. I'm looking for a way to reference the current object itself and not just a property of it, as I'd like to check whether its in a collection of objects I am passing seperately as a parameter: <textFieldExpression class="java.lang.String"><![CDATA[$P{skills}.contains($F{this}) ? "yes" : "no"]]></textFieldExpression> $F{this} doesn't work, but i assume there is some way to get a handle on the current object. Thanks in advance. Link to comment Share on other sites More sharing options...
miles Posted May 4, 2007 Author Share Posted May 4, 2007 Never mind, found an answer on this post:http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=&func=view&catid=8&id=22414#22414 Link to comment Share on other sites More sharing options...
lucianc Posted May 4, 2007 Share Posted May 4, 2007 You could also post a feature request here to include this functionality in JRBeanCollectionDataSource itself so that people won't need to extend it to get hold of the bean. Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now