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.

Help finding exact match in a find in a script

Featured Replies

Hi,if anyone can help that would be much appreciated.

I have a script that goes to a report of the current record. I do that by copying and pasting the current records group name.

PROBLEM: when the script performs the find on the group name I need it to find the exact match, how do I do that?

Don't use copy and paste. Grab the group name using Set Variable[$GN; GroupName]. Put it into the find by using Set Field [GroupName; "==" & $GN].

The "==" indicates an exact match.

  • Author

Thank you so much for responding, it's a great thing to know and it worked perfectly.

Another way, not necessarily better but it feels easier to me (and can allow more flexibility if more modifications need to be done to it) ...

Enter Find Mode [ pause ] ... to accept user input

Modify Last Find

Set Field [ thatField ; "==" & thatField ]

Perform Find [ ]

One should of course, include the proper error trapping etc.

Edited by Guest

Ooops, sorry, I didn't see you copied it first. Firstly, I'd try to leave your clipboard intact and use a variable or script parameter (DJ gave you one). But if you needed to modify the theory of my script, it would be:

Copy [ Select ; table::thatField ]

Enter Find Mode [ ]

Paste [ Select ; table::newField ]

Set Field [ thatField ; "==" & newField ]

... and, just because I provide a method for using copy/paste does NOT mean I suggest it. Like DJ and a thousand other Developers, I suggest strongly against it. But as long as the User performs this action and is aware it interfers with their clipboard, it can be okay I suppose. I'm only giving the option because I didn't properly read the first request about going elsewhere before performing the find. :wink2:

My prior script is great when you want to modify a User-initiated find.

  • 4 years later...

Thanks Friend.

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.