how to concatenate parameters

0
Here I am using below expression for a paramter name P1 which fetches data from cal, param_date parameters
 
(
    $P{cal}.set($P{param_date}.getYear()+1900, $P{param_date}.getMonth(), $P{param_date}.getDate())
||
    $P{cal}.add(Calendar.MONTH, -1)
)
? null : $P{cal}.getTime()
 
when i run the report it is showing error at `||` 
 could you please help me out .How do I concatenate parameters?
 
Thanks All.
 
santosh.audi19's picture
Joined: Sep 9 2015 - 9:58am
Last seen: 1 year 1 month ago

Try keeping (  (brakets) separately.

sadakar - 3 years 9 months ago

1 Answer:

0

You can concatenate fields, variables and parameters by using the plus (+) sign. Pipes are used as the OR conditional.

javier.ggi90's picture
Joined: Dec 6 2015 - 1:46pm
Last seen: 2 years 6 months ago
Feedback
randomness