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.

Constraining/Extending Finds in Scripts

Featured Replies

Does anyone know how I might do this?

Frequently, I want to create a complex search in a script, such as:

"Find all records on 7/14/2003 with either status code of 7 or 8"

In SQL-speak, this is easy:

"Select * from FILEV WHERE (

((MyDate = '07-14-2003') AND ((STCODE = '7') OR (STCODE = '8')))

);"

But I can't figure out how FM's logic works on this.

Enter Find Mode

Set Field (MyDate, 7/14/2003)

Set Field (STCODE, 7)

Duplicate Request

Set Field (STCODE, 8)

Perform Find

Note that Set Field doesn't always work as expected with date fields. Sometimes you have to use Insert Calculated Result, which means you have to be on a layout with the date field on it.

When you enter the find mode, you will need to create two find requests. The first would have a date of 7/14 and a status of 7. The second request would be the same except the status would be 8. When you perform the find it will find the records meeting that criteria. For a find (aka query) that uses AND needs to have multiple find requests.

HTH, Mike

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.