Jump to content

This topic is 7322 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

Posted

Sorry, it is

$fmq->AddDBParam('date1', $start_date, 'gte');

$fmq->AddDBParam('date1', $end_date,'lte');

I am searching on the same field..:

Posted

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!

Posted

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

This topic is 7322 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.