Jump to content
We've recently updated our Privacy Statement, available here ×

The method DAY(Date) is undefined for the type invoice_sub


Recommended Posts

Hi,

I have an JRXML file (not compiled) in my Java classpath.

It worked perfectly, but I had to make some changes in the code, and I started using internal Jasper methods:

DAY(Date)DAYSINMONTH(Date)MONTH(Date)[/code]

When I am testing it in the Jasper Designer, everything is fine. But in the java app, when I am trying to compile the report and generate the PDF file I get errors:

1. The method DAY(Date) is undefined for the type invoice_sub_1557138584226_714026                value = String.format("%2s", DAY(((java.util.Date)parameter_ORDER_DATE.getValue()))).replace(" ", "0") + //$JR_EXPR_ID=9$                                             <->2. The method MONTH(Date) is undefined for the type invoice_sub_1557138584226_714026        String.format("%2s", MONTH(((java.util.Date)parameter_ORDER_DATE.getValue()))).replace(" ", "0") + //$JR_EXPR_ID=9$                             <--->3. The method DAYSINMONTH(Date) is undefined for the type invoice_sub_1557138584226_714026        String.format("%2s", DAYSINMONTH(((java.util.Date)parameter_ORDER_DATE.getValue()))).replace(" ", "0") + //$JR_EXPR_ID=9$                             <--------->[/code]

 

What have I done wrong?

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