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.

Looping through all without munging found set?

Featured Replies

How do you loop through all records in a file without munging the found set?

The user is in layout A or B or C. He clicks to go to layout D. Found set and the current selected record should remain the same. But before bringing up D, I want my script to loop through all records in the file making some changes.

Writing the loop is not a problem. Writing it such that it doesn't eliminate the users found set and leave him in the last record in the file is another thing.

Hints?

A few steps are necessary.

The script looks like:

SetField(gCurrentRecord, Status(CurrentRecordNumber)

Loop

. process records

.

.

Exit after last

End Loop

Show Omitted

Go to Record/Request/Page (first)

Loop

. process records

.

.

Exit after last

Show Omitted

Go to Record/Request/Page (by field, gCurrentRecord)

The other way is to mark the records in the current found set by writing their RecordID's to a global field, showing all records, processing them, and finally restoring the found set by a relationship between the global and the record id using a Go to Related Record.

-bd

Somehow I do not understand correctly this -- just by switching layouts you are not loosing the Found set.

By processing and/or omitting some records -- yes. But records can be flagged and marked as LiveOak suggested.

  • Author

Loop

Show Omitted

Loop

Show Omitted

Ahhh, of course... can't believe I didn't think of that.

Thanks!

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.