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

Built-in functions TODAY and DATEFORMAT(Date & Time) are not working anymore with Jaspersoft Studio 6.0.0


Recommended Posts

In Jaspersoft Studio 5.6.1, I had been using the Built-in function TODAY and DATEFORMAT (Date & Time) in an expression:

DATEFORMAT(TODAY(),"MMMM yyyy")

In Jaspersoft Studio 6.0.0, this is not working anymore. When opening the Preview, I get the following error message:

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
1. net.sf.jasperreports.functions.standard.DateTimeFunctions cannot be resolved to a type
        return getFunctionSupport(net.sf.jasperreports.functions.standard.DateTimeFunctions.class).TODAY();
                                  <------------------------------------------------------->
2. net.sf.jasperreports.functions.standard.DateTimeFunctions cannot be resolved to a type
        return getFunctionSupport(net.sf.jasperreports.functions.standard.DateTimeFunctions.class).DATEFORMAT(arg0, arg1);
                                  <------------------------------------------------------->
2 errors
 
at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:204)
at net.sf.jasperreports.eclipse.builder.JasperReportCompiler.compileReport(JasperReportCompiler.java:169)
at com.jaspersoft.studio.editor.preview.view.control.ReportControler.compileJasperDesign(ReportControler.java:395)
at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$14(ReportControler.java:383)
at com.jaspersoft.studio.editor.preview.view.control.ReportControler$4.run(ReportControler.java:314)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 months later...

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