Jump to content

Recommended Posts

Posted

Hi,

I have one requirement, When we passed parameter as year as 2017 then i need to get 2018 year details.

it means we need year+1 details.

Please help us quickly for this question.

Thanks

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

jasper has inbuilt date functions.

if your parameter is of java.sql.Date type , then use YEAR($P{Parameter1} ) + 1

if your parameter is of java.lang.String. then use Integer.valueOf( $P{Parameter1}) + 1

 

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