Jump to content

Can we apply database Fuction on ireport veriable...


singh758

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

thanks for reply .

in my query i already done too much calculation for getting one column.

and in i-report i creating one variable that sum of that column. and i want to apply function on that variable .

so where i write java method for calculation.

 

Link to comment
Share on other sites

If your variable is summing up the fields coming from your query, using a java method in the variable expression for that particular variable would apply the method to each value prior to the summation. Assuming that you actually want the method to apply to the sum, you would create another variable with a variable expression that uses the method on the result of the first variable.
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...