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.

Distant related fields not updating in Pres Layer

Featured Replies

SCENARIO: I have 8 related tables in a single FM7 file, primarily using a star join. The GUI layer used for printing is a separate table which contains the many required layouts, most of which use PDFs with related fields overlaid where required, or text with merged fields. This is done to seperate data from the presentation layer, so that a change in one or more of the PDFs can easily be updated without disrupting the data.

INTENDED BEHAVIOUR: The "template" table contains many layouts but only a single record - the record to be printed. The relationship with the "template" table is via a global field; it contains the primary key of the record to be printed from the main data table. Clicking on the record to be printed takes the user to the appropriate "templates" layout and displays the directly related record, along with any other relevant but more distant related fields.

OBSERVED BEHAVIOUR: a script sets the global field in the "templates" table to the correct ID and switches to the intended "template" layout. Related fields located in the same table as the primary key update properly. Related fields from one or more table "hops" away do not update. Closing the file and re-opening it causes the more distant related fields to be properly updated and displayed.

QUESTION: Why are more distant related fields not updating immediately, but only after the file is closed and reopened?

Try adding the Refresh Window script step using the option Flush Cached Join Results. This is new with v3.

Ralph, you're goooood! :-) The Flush Cache to Disk worked.

doug

  • Author

Ack - I may have spoken too soon. Will let u know after more testing. :-(

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.