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.

Omit records & restore found set to previous state

Featured Replies

Here's what I'm trying to accomplish in a script:

-Import data into FILE B from one record in a found set in FILE A.

-In order to import only that one record, I am *omitting* that record in FILE A and then using the "Show Omitted" script step. The ensuing Import Records step then correctly imports only that one record.

What I can't figure out is: At the end of the script, how do I then go back and restore the previous found set in FILE A to the exact state it was in before, sorted in the same order as before, and make the 'omitted' record the current record being browsed? Hope that makes sense. Any suggestions greatly appreciated.

If you don't have too many records in the found set, the Copy All Records script step can be used to copy the IDs of the found set, which can then be stored in a global. Then a Go to Related Records [ Show ] step on a self-join relationship from the global to the ID should produce the correct found set. You would then use one more GTRR on a self-join from another global LastID to ID relationship to navigate to the correct record.

See my demo in this thread:

http://www.fmforums.com/threads/showflat.php?Cat=0&Board=articles&Number=101576

The size of the found set you can remember with this is limited to maximum number of characters allowed in a text field (something like 64,000 characters, or a few thousand records depending on the size of the ID.)

Another approach would be to pass the data from A to B via global fields. If there are only a few fields that would be easy enough. If there are a lot of fields, then set a global in B to the primary key of A, and make a relationship in B from the B global to the A key field, then set the fields in B based on the relationship.

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.