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.

dynamic sort script

Featured Replies

What is the best way to create a find script to avoid manually typing in the criteria? Ie., the client would like to simply choose from some kind of pop-up list defined by records in the same file which when a listing is chosen, the appropriate script is run for the selected find?

Hi,

You're talking of a find while the title you choosed for this thread deals with sort.

If it is for a sort script, then the value in the drop-down could be the fieldnames themselves.

GetField( ) is therefore the handy function to use to get a dynamic sort.

If you want this list to only display the fields on the current layout, you'd use the FieldNames ( ) function, and a small script to pass the list of fields to a text field.

Then all you need is a related value list, targetting this new list and using a self relationship on the recordID.

If it is for a find script, then you may want to dissect "SmartFinds.fp5", available in the article section of this Forum.

Although I'm using this technique on a day to day basis, I couldn't reproduce it here as a sampler in the same manner, and it may appear a bit obscure. Please ask if really this is what you're looking for. It's a hard work, but when working it saves a lot of time.

HTH

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.