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.

Featured Replies

Hi All,

 

Hoping somebody can help please or just point me in the right direction.  Is there a way to refresh / update calculated fields on a layout.

I have tried a 'Refresh Window' script, 'Refresh Object' script but neither appear to work.

 

At present I am leaving the field's browse mode on in Inspector, as I have discovered through trial and error that when I change/add data then click in the calculated field it activates a refresh..... well in most cases it does. 

 

This isn't ideal as on one particular layout I have 2 calculated fields, plus two portals each with a calculated field (Four calculated fields in total). The alternative is to come out of the layout and go back into it.

 

In trying to find out the answer, I did read a post about using a 'cartesian join' to refresh calculated fields but there were a few negative replies to that post so guessing it wasn't the best method and if i'm honest I was struggling to understand it.

 

Regards

Steve

Is there a way to refresh / update calculated fields on a layout.

 

It depends on the type of the calculation:

 

If the calculated field is stored, it will update when one of the referenced fields is modified.  Otherwise it will update on window refresh (scripted or otherwise).  However, if the (unstored) calculation depends on data derived from related records, you might need to flush the cached join results (this is an option of the Refresh Widow[] step) in order to get the calculation to reflect changes made to related records since the last refresh.

  • Author

Hi Comment, yes my unstored calculation fields depend on changes made to data in related fields.  Some of the related fields can be more than one level deep however. I'm unsure if more than one level deep you would still class them as related but if the tables are joined in one way or another I suppose you would.

 

I forgot to mention, my database is being developed for use via WebDirect and one article I read suggested not using a flush cached join.

one article I read suggested not using a flush cached join.

 

I don't know about that. If the calculation looks at the cache in order to get the result, and that cache no longer represents the actual related records, I don't see that you have a choice but to flush the cache and generate a new one. And yes, this issue is most often encountered when one relationship depends on the results of another - including relationships that are more than one level deep.

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.