Is it possible to use a custom java function in a calculated expression within a domain?

0

I have created a jar containing a custom function. This works correctly within reports in JasperStudio

I want to use the custom function to output a calculated field within a JasperServer domain. I am struggling to make this work.

I have loaded the JAR into the webapps\jasperserver-pro\WEB-INF\lib

I can't see the correct syntax/additional configuration required to use this function in the CalculatedField expression box

I have attempted to add it to the applicationContext-el.xml, but all that happens is that JaspereServer passes the function down to the database.

Is what i am trying to do possible?

johnsescott's picture
Joined: Jan 28 2015 - 8:59am
Last seen: 6 years 1 week ago

1 Answer:

0

Hi there -

I don't have direct response since I don't know exactly.  I do know that you can call db functions from the domain designer, but Jar files may be a stretch.  I have never seen it done.  Maybe someone else can add something to this thread.  Great question! 

H Mendoza's picture
361
Joined: Feb 20 2013 - 11:39am
Last seen: 2 years 3 months ago
Feedback
randomness