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.

How to preview the current record

Featured Replies

Is there a simple command in FM to preview the current record; rather than previewing the entire found set until one gets to the required record?.

Thanks

One way to do it might be to make a script that finds the current record and then goes into preview mode.

Something like:

Set variable $currentrecord

Perform Find $currentrecord

Enter Preview Mode

You may wish to isolate the record in a new window. This way, you can close the window after preview and maintain the user's found set.

No need to perform a find.

New Window

Show All Records

Omit Record

Show Omitted

  • Author

Thanks,

The second line of the script is to Perform Find, is asking for a field to choose. Please help.

Use Vaughan's suggestion. Add Enter Preview Mode at the end.

Both the Set Variable and Perform Find should ask for a field. They just have to be the same. If you're using the record ID (serial number) then you can set a variable like $serialID and then tell it to use the serialID field. Then when you do a find you would use look for the same field serialID that would equal $serialID (the variable you set earlier).

Does that make sense?

Vaughan's way might be better though.

Isn't omitting a record and then showing the omitted the same as doing a find?

Isn't omitting a record and then showing the omitted the same as doing a find?

No. Performing a find is more work for the CPU and can be significantly slower with large record sets.

See also:

http://fmforums.com/forum/showtopic.php?tid/184454/post/239925/#239925

Great to know! I'll change my evil ways.

So is this what should be used? (taken from the thread link)

Loop

Exit Loop If [ Get ( FoundCount ) = 1

Show All Records

Omit Record

Show Omitted Only

End Loop

Get rid of the loop. What if the found set is empty? Either way it's redundant.

Is it?

OK, yes, I see what you're defending against... but that could happen any time.

No need to perform a find.

New Window

Show All Records

Omit Record

Show Omitted

I can't believe how many times I could have used this script in the past. It might be simple, but with the addition of the final step, Enter Preview Mode, it's a great tip. Thanks.

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.