Jump to content
We've recently updated our Privacy Statement, available here ×

DJ: How to access a property on a field in a table


MiditecReportDev

Recommended Posts

Hi,

I'm fairly new to Dynamic Jasper and would like to add a column to a table that uses a field of the property provided.

As an example, in Jasper Studio, I use the expression $F{activity}.getTime() where "activity" is the field actually provided.

How can I solve this in Dynamic Jasper? I tried somthing like

ColumnBuilder.getNew().setColumnProperty( "activity.getTime", Date.class )   but this leads to an NoSuchMethodException: Unknown property 'getTime' Exception.

Thanks for your help!

 

Patrick

Link to comment
Share on other sites

  • Replies 0
  • 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...