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.

perform find using dialog

Featured Replies

  • Newbies

I need to write a script that performs a find based on inputs from a dialog box. I can get the dialog box to pop up but I don't know how to perfom a find based on the inputs. Someone help!!!

Are you using global fields to hold the results from the dialog box? Normal fields have no value in the find mode.

  • Author
  • Newbies

None of the fields in my database are global. This is my first attempt to use a dialog box or a find script.

Do you mean something like

Allow User Abort [Off]

Set Error Capture [On]

Go to Layout [one associated with the input fields to be searched]

Enter Find Mode [ ]

Show Custom Dialog ["Enter find criteria"; {input fields}]

If [not IsEmpty(field1 & field2 & field3)] {assuming you have 3 input fields in the dialog}

Perform Find []

If [not Get(FoundCount)]

Show Custom Dialog ["No records could be found."]

Show All Records

End If

Else

Enter Browse Mode

End If

Uhm... Enter Find Mode[]?

Thanks, I must have deleted it accidentally.

Another thing - why the Go to Layout step?

To prevent unexpected results. Who knows from where the script is being triggered? They might be on a layout that is not even related to the input fields' TO.

Who knows from where the script is being triggered?

I do.

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.