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

Custom Function in Jasper Report


Recommended Posts

Hi,

Am new to Jasper report development and am using iReport-5.6.0

I have a summary column in a jasper report, which i need to pass as an input to my oracle custom function and get the ouput in another text field.  Right now am doing this in a Sub report. Is there any other way to achieve this without using sub reports as there are too many data to be converted like this.

Something like below

WhatsAppImage2023-12-20at10_08.03_ee7b1c32.jpg.14cea659687549c92bd3c034cb8a9af9.jpg

Link to comment
Share on other sites

Hello @Raj.S,  

iReport has been deprecated and we strongly advise for you to use Jaspersoft Studio for your report design needs moving forward. You can download the latest version for free here:  https://community.jaspersoft.com/downloads/community-edition/.  Please post to the forum if you need any guidance with this transition. Thank you! 

 

Link to comment
Share on other sites

Hi, 

you can use a Subreport for that. Pass the summarized value as parameter. Subreport's data query is something like 

call orcale_function($PARAM)

Then you either print that information directly OR you return the information via variables back the the calling report and use it there.

  • Thanks 1
Link to comment
Share on other sites

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