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.

define fields from related databases

Featured Replies

hi all,

i have a little bit of trouble with a simple math using fields from related databases:

what i'm trying to do is to create a field that substract the value from a field in a related database from the value of a local field. the value of the field in the related database can change whenever.... how can i define i field like that. i define a calculation field that like this:

field calculation = local_field - field_from _related_database

but if the value in the related db changes the calculation doesn't work. i did a field that shows the changed related value and that one does change when the value in the related db changes but the calculation field doesn't do the math...

any help will be appreciated...

The calculation should be unstored (this should be the only way possible as one field is related). You may have to refresh the screen to see the changed value. I personally use "Enter Preview Mode" followed by "Enter Browse Mode" in a script for this purpose.

-bd

Hello Toshog,

If you are still wrestling with this, here are a couple more things you can try:

If the field in the related database that your calc is referencing is itself an unstored calc, it may be that the chain of external references is too long. I have seen some examples of calcs of this type that update fine in v5.0 but not when running in v5.5. If this is the issue, there are two things which might help:

1. Turn off "Do not evaluate if all referenced fields are empty" setting at the lower left of all the calc options which contribute to the result which is not refreshing.

2. Exit the record before doing a 'Refresh Screen' (either manually or in your script) to force the field to calculate/update.

If a long chain of calculation dependencies could be a contributing factor and you haven't made any headway with the above steps (and/or those suggested by LiveOak), the final resort would be to calculate one of more of the values in the chain via a script which stores the results and can be set to refresh them when needed. This may be a little less convenient for the user, but it may get you going again if this problem is not solved in any other way.

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.