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

Using user-entered formulas at runtime


raffaele
Go to solution Solved by Ankur Gupta,

Recommended Posts

Hallo

my customer would like to enter formulas at runtime to be used for calculations on the input parameters, likely than an Excel.

Let's say, the user would input both parameters AND calculations to be made on that parameters.

Is it possible?

Thanks in advance

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Hi raffaele,

     Yes it could be done, by specifying the various calculations inside jasper Report in form of conditions of the parameters for instance there would be three parameters 1st  and 2nd will take two parameters and 3rd would take the operation to be made and then the evaluation could be performed in a variable expression and then that variable could be displayed in the report.

 

Hope that works

 

Thanks,

Ankur

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