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

how to use Between in ireport


icaros91

Recommended Posts

How about, my problem is I want to generate a report of such date to such date, the query I have in that part of the Between is like this:

to_char (date, 'dd-mm-yyyy') Between $ P {date} and $ P {date1}

not mark me wrong but I sum data are not.

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

from what I do is send these parameters java

 

Map parameter = new HashMap ();

                

         parametro.put ("date", day + "-" + month + "-" + year);

parametro.put ("date1", day + "-" + month + "-" + year);

 

where the variables day, month and year I get a combobox in java, and in ireport I do is get in this way

 

TO_CHAR (date, 'dd-mm-yyy') Between $ P {date} and $ P {date1}

 

if I do it separately if you do it correctly, for example:

TO_CHAR (date, 'dd-mm-yyy') = $ P {date}

 

but if I do it with me sum values ​​BETWEEN statement.

and try it with operators> =, <= and I also sum ​​values

Link to comment
Share on other sites

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