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

Problem with BigDecimal variable calculation


nitin403

Recommended Posts

Hi, All.

I have a text field called "ProjectAmount", which holds a String value.

 

I want the total of this field in the column footer.

 

So created a variable called "TotalPro".

the expression is

new BigDecimal($F{ProjectAmount})

This works fine.

But if ProjectAmount is "" or null the report fails.

 

In this report if such a condition comes then it should ignore this, and continue with rest of the report.

I was not able to formulate the correct equation.

 

Thanks for your help in advance.

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