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.

What kind of Find.. will put me at the first record of a,b,c etc?

Featured Replies

What kind of Find.. will put me at the first record of a,b,c etc?

My idea,

I have a 26 hot spot button... if I click on M, i go to m in the records..

You need a calculation field;

FirstLetter; (calc, text) =

Left([color:blue]yourfield; 1)

Your script should look like this;

Find File Alpha

Set Error Capture [ On ]

Set Variable [ $letter; Value:Get ( ScriptParameter ) ]

Enter Find Mode [ ]

Set Field [ [color:blue]yourfile::FirstLetter; $letter //This is the first letter of your FirstLetter ]

Perform Find [ ] Sort Records [ Specified Sort Order: ascending ]

[ Restore; No dialog ] Go to Record/Request/Page

[ First ] If [ Get (LastError) <> 0 ]

Show Custom Dialog [ Title: "Warning"; Message: "No records found."; Buttons: “OK” ]

Show All Records End If

Each button will have a script parameter of the Letter the button represents i.e. G = "G" parameter.

HTH

Lee

M finds both Mike November and Lima Mike

==M* finds Mike November but not Lima Mike

Without much to go on, I imagined this was targeting a Last Name field, and kept it simple. But a last name might be more than one word, you're right, "==" is more likely to be what is wanted here.

The OP's stated

I have a 26 hot spot button... if I click on M
which doesn't sound like a Manual Find to me, but more like Link

In general I prefer to work with lists rather than filtered portals. The Find would be scripted, not manual -- that's sort of implied when we're talking about buttons.

Maybe it is time for the OP to reply to what has been suggested?

  • Author

Thanks for your comments... When i can't figure it, I ask question, this on a learning exercise.. since then i decided not to do so and just let the op use the scrollbar

I think ==M* seems simpler and get my record point to the fist letter of the name field.

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.