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.

unstored calc not updating

Featured Replies

I am trying to use a calc field with a container result to display whether a phone number in a portal is selected as the primary number for the record.

 

I have a person table and a telephones table.  The person table has a field for "PrimaryPhoneID" that is populated by a script when the indicator icon next to the phone is clicked.  This part works.

 

I have a "isPrimary" field in the telephones table that uses ExecuteSQL to lookup the value in "PrimaryPhoneID".  This is where my problem is.  The result of that calc field does not update when I select a new primary number until after I click into another field on the portal.

 

In the example, you might ask why use ExecuteSQL?  My real database has a multi key field for the relationship between the tables so the result of a calc that uses the relationship would give results for more than just the current record.

 

Example attached.

PrimaryIndicator.fmp12.zip

Your portal results are being cached. You need to force a refresh via a script step in your ContactRecordLoad script.

  • Author

Thanks for the tip, but that didn't fix the problem for me, same result.

Well based on the sample, that is my guess. Did you do a refresh window with flush cache? Your actual file may be needed to further troubleshoot.

  • Author

Got it.  It was actually the other script on the button that needed the refresh.

 

Thanks again for the help.

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.