(
$P{cal}.clear() ||
$P{cal}.set(Calendar.YEAR, $P{year_current})||
$P{cal}.set(Calendar.WEEK_OF_YEAR, $P{week_current}) ||
$P{cal}.setFirstDayOfWeek(Calendar.MONDAY) ||
$P{cal}.setMinimalDaysInFirstWeek(4)
)
? null : $P{formatter}.format($P{cal}.getTime())
The above code calculates the start date from ‘week_current’ and ‘year_current’ input’s. The problem is that the code calculates the startDate in ireport but not in jasper server.
When I run the report on jasper server, the display mode (pop-up window) comes up blank without any input controls.
But when I change the above code to match one of your date calculations,the same report runs without any issues on jasper server i.e, the display mode (pop-up window) shows the defined input controls.
I would appreciate if you can let me know what is wrong on my date calculation expression which is preventing the input controls to appear on jasper server.