Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can't search on 2 criteria for one field

Featured Replies

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!

  • Author

Sorry, it is

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

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

I am searching on the same field..:

Is it working OK with the same query directly into FM, or even as a URL with XML being returned?

Garry

  • Author

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!

  • Author

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

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.