Jump to content
Changes to the Jaspersoft community edition download ×

Need reference to current object in report


Recommended Posts

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"]]>



$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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...