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.

scripting "not" in a multiple find

Featured Replies

FMP documents well how to create a search then add to it by getting a new search (ctrl "N") from the request menu - if necessary ticking the "omit" box.

I want to do the same thing in a script to include certain values from one field, but exclude values from another - eg everyone from City A who is not Occupation B. I want to use the results of a global field to define the "include" criteria so I cant "pre-setup" the search.

Can anyone help me with the script steps ?

When you are in find mode in a script, the following script steps behave as follows:

New Record/Request - Creates a new find request

Omit Record - Changes the current find request to an "Omit" request.

So if you want to find all records where field x="hello" and field y notequal.gif "goodbye" you would do this:

code:


Enter Find Mode [ ]

Set Field [x, "hello"]

New Record/Request

Omit Record

Set Field [y, "goodbye"]

Perform Find [ ]


  • Author

Many thanks - obvious really

SB

Make sure that the status area is toggled to "show", otherwise the Omit script step will not work! Not so obvious.

Toggle Status Area (Show)

-bd

LiveOak, I tested this a bunch of different ways, and the state of the Status Area made no difference at all. I'm using FM 5.0v3.

Can you send me a demo file where a hidden Status Area causes an Omit Record step to malfunction during a find?

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.