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

Custom Expressions/Functions


edeards

Recommended Posts

Hi all,

I'm writing a report generation system which builds pdf fragments from assorted datasources and tacks them together to form a big report. As a consequence I'm trying to generalise all my input fields in such a way that for all these jasper report fragments, I provide the same fields in a JRMapCollectionDataSource.

This works fine so far.

However I have a subreport in one report which needs to sum a column and place a total in the footer band. Again, this would be simple - if my fields were Integers rather than Strings!

I do have a mechanism in my own code to change this - however it's something I'm prefering use as infrequently as possible, as it means I'm breaking away from my generalised interface.

I cannot see any function within the iReport expression builder that allows me parse Integers from the String fields. I'm hoping there is some mechanism by which I can write my own function/expression handling code and plug it into the jasper engine. Does such a mechanism exist?

Thanks for any advice!


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...