Jump to content
Changes to the Jaspersoft community edition download ×

Using postgres function on control Parameter


sulaimanrafiq

Recommended Posts

Hi Guys,

 

Apologies if im creating this in the wrong place. Im new to iReports and the site.

 

I am attempting to pass a control date parameter (value entered by the user) into an SQL statement. No problems with that on its own.

 

However, when i try and use the date parameter in a postgres function (for example date($P{end_date}) + interval '24 hours') the function does not like the syntax of the parameter.

 

The syntax im using for the function im pretty sure is fine. I've imported in the postgres jars that i need to use for the function. Any date fields from the database passed in work.

 

Does iReport support type of SQL statement or am I missing something?

 

Thanks in advance for any help offered.

 

Sorry again if this is in the wrong place.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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