Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Range of data between two parameters

Status
Not open for further replies.

GNZLSA

Programmer
Mar 27, 2003
1
US
How do I setup multiple parameters to get data between
two range points?

In Acutauate Designer 5 SP2 (connect Oracle 8i)
I am trying to report rows within a date range.
User should be able to specify FromDate and ThruDate as
input parameters.

DataStream comes from the Textual Query Editor.
Code:
SELECT B.BATCHDATE,B.BATCHNUMBER
FROM BATCHINFO B
WHERE B.BATCHDATE BETWEEN :FROMDATE AND :THRUDATE
So far I am only able to successfully run this much
Code:
SELECT B.BATCHDATE,B.BATCHNUMBER
FROM BATCHINFO B
WHERE :?FROMDATE
Is there an easy solution or is this really complex in Actuate?
GNZLSA
 
It is not that hard....I recomend overwriting the obtainSelect method and appending the where clause you need. Your parameters should be set as global variables and all you need to do is write the dynamic where clause.

If you need more help, email me I can send an example we do this very thing all the time.

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top