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.

Portal Refresh

Featured Replies

I am using FM 11 adv in OSX

I have a portal with 2 portal fields: Date Reading

In the same table I have: Maximum, Minimum and DIfference (Maximum-Minimum) fields

The portal is sorted in Ascending Date order.

The problem:

I have a water meter reading application.

There are 2 tables: PROPERTIES and METERREADING (one to many)

On a layout based on PROPERTIES I have a portal based on METERREADING.

When I add a new 'row' to the portal, I enter the Date and the Reading.

This puts the 'new' row at the bottom of the portal.

I need to, in script, 'refresh' the portal so that the new 'row' is put in the proper sequence

so my script can find the MAXIMUM and MINIMUM.

I tried REFRESH and that doesn't work.

I tried jumping to another field and back and that doesn't work.

What is the 'trick' to getting the portal to 'refresh' after adding a new row?

Use the Commit Record/Request script. Then Refresh Window with the flush cached joins option selected.

  • Author

Use the Commit Record/Request script. Then Refresh Window with the flush cached joins option selected.

Works great. I have tried those two commands but not consecutively. Is being consecutive what drives it to work?

Thank you for the assistance.

The commit step closes the record and updates the data. The "flush cached joins" option of refresh window step make FMP re-calculate all the relationships and portals.

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.