Jump to content

Parameter Default Value Expresion


pokornyjan

Recommended Posts

Hi all,

I use 

"(
    $P{cal}.set($P{runDate}.getYear()+1900, $P{runDate}.getMonth(), $P{runDate}.getDate()) ||
    $P{cal}.add(Calendar.MONTH, -1) ||
    $P{cal}.set(Calendar.DAY_OF_MONTH, 1)
)
? null : $P{cal}.getTime()"

in Parameter - Default Value Expression.

Jasper Studio is OK, parameter shows value "5/1/18 11:35:48 AM"

 Jasper Server show error "Specify a valid value for type Timestamp." Input Controls show value "2018-05-01" without time?

Thank you very much in advance,

Jan

 

Link to comment
Share on other sites

  • Replies 1
  • 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...