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 Extended Finds

Featured Replies

Hello

Using a script, I am trying to execute a Find, then Extend the Found Set with a another qualifier. However, the result is only capturing the value returned from the initial Find. I've included the steps below. Any idea what is missing?

Joe

Go to Layout…

Enter Find Mode []

Set Error Capture [On]

Set Field […]

Perform Find []

Enter Find Mode []

Set Error Capture [On]

Set Field […]

Extend Find []

Offhand, it looks OK. Except you are using Set Error Capture ["On"], but you're not doing anything with the error, if any. So, it is quite possible that the 1st Find is working, but the Extend Find didn't find anything more, so it's returning your 1st found set with no message. Try:

If [ Get (LastError) ≠ 0 ]

Beep

Show Custom Dialog [ whatever ]

End If

Or try running it with Set Error Capture ["On"] disabled and see what's happening. Also, I believe you only need 1 Set Error Capture ["On"], which stays in effect until the script ends, or you turn it off.

Edited by Guest

  • Author

Thanks Fenton. I turned error capture off and found the problem.

BTW, you don't have to turn error capture on twice. It stays on for the duration of the script unless you turn it off in that script.

Also, instead of doing a Find and then another Find/Extend, you could just do a new find request (unless as Fenton pointed out, you actually want to trap the error separately for each Find request):

Go to Layout…

Enter Find Mode []

Set Error Capture [On]

Set Field […]

New Record/Request

Set Field […]

Perform 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

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.