Jump 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.

Find w/ omit driving me insane!

Featured Replies

Alright, I've been turning to here more lately than I'd like, but I've just been having brain melt-downs... must be the newborn-lack-of-sleep thing.

Alright, it's a simple thing, really. I have a script that wants to find for a record that contains a ValueA in a FieldA and omit the records that contain ANYTHING in FieldB.

The best way I can think to describe it is:

If FieldA == VariableA AND IsEmpty(FieldB)

Display records

Seems simple. What everything seems to be doing is evaluating the first part (FieldA == VariableA), displaying results then somehow displaying every record again (including what was filtered out already) and evaluating the second part, leaving in results that don't meet the first part.

Not sure what to do here. Can't imagine why this is so hard for me...

The general syntax for building a Find is to put the criteria that you want found first, followed by the criteria that you want omitted (this order is important).

In your case, you might use a script to build the criteria, like this:

Enter Find Mode[]

Set Field [ FieldA ; $variableA ]

New Record/Request

Set Field [ FieldB ; "*" ]

Omit Record

Perform Find []

Perhaps I am not reading this correctly, but I see:

Enter Find Mode [ ]

Set Field [ FieldA ; ValueA ]

Set Field [ FieldB ; "=" ]

Perform Find [ ]

Oh yeah, that works too.

  • Author

For the record (and future searches), I ended up going with Ender's suggestion (mentally flipped a coin) and it worked beautifully.

Thanks a lot both of you!

Create an account or sign in to comment

Important Information

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

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.