I need to create a calculated field using a field in jasper domain designer. I have a field called Report Date. Form the Report Date field i need to create a calculate field which hold the Year of Report Date field.
I have tried the YEAR(Report Date) function. But when i tried to use in reports i am gettign error. please help me on this.
0 Answers:
No answers yet
What is the data type of 'Report Date'?
Exactly what error do you get?
I created the report using the iReport and created the variable for report year and given the variable expression as below and the issue is fixed.
new Integer($F{"Field name" }.getYear()+1900).
Thanks for the reply.