Jul Posted January 14, 2005 Posted January 14, 2005 I am trying to adjust my web pages to work with FM Sever Advanced 7 and FX. I need to find records within particular date range. I was able to do that with FMPro6. Right now I can FindAll, or use -eq without any problems, but the follwong does not work: $fmq->AddDBParam('date1', $start_date, 'gte'); $fmq->AddDBParam('date2', $end_date,'lte'); $fmq->AddSortParam('work_number', 'ascend'); $ReturnedData = $fmq->FMFind(); I believe all my other settign are OK because I can FMFind records for one date. What is not wokring is finding the date range. Please HELP... Thank you!
Jul Posted January 14, 2005 Author Posted January 14, 2005 Sorry, it is $fmq->AddDBParam('date1', $start_date, 'gte'); $fmq->AddDBParam('date1', $end_date,'lte'); I am searching on the same field..:
Garry Claridge Posted January 14, 2005 Posted January 14, 2005 Is it working OK with the same query directly into FM, or even as a URL with XML being returned? Garry
Jul Posted January 14, 2005 Author Posted January 14, 2005 It is working OK directly in FM. It returns 0 when I am trying to do the following: http://localhost/fmi/xml/FMPXMLRESULT.xml?-db=test.fp7&-lay=web&date_entered=12/18/2004&date_entered.op=gte&date_entered=12/19/2004&date_entered.op=lte&-find Thank you!
Jul Posted January 14, 2005 Author Posted January 14, 2005 I figured out that this works thought: http://localhost/fmi/xml/FMPXMLRESULT.xml?-db=test.fp7&-lay=web&date_entered=12/11/2004...12/18/2004&date_entered.op=bw&-find
Recommended Posts
This topic is 7590 days old. Please don't post here. Open a new topic instead.
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 accountSign in
Already have an account? Sign in here.
Sign In Now