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.

Using a Calculated Field in a relationship....

Featured Replies

  • Newbies

I am newbie to FM5, but have so far figured out how to link two databases using a calculated field (that is the combination of two fields), by creating a calculated text field that is field1: + field2:, in both databases, then creating a relationship in which ID:=ID::P . That works well, until I try to add a record.

When I add a record, I get the message:

The relationship ID is not valid and must be corrected before this field can be modified.

I think I understand what is happening, the portal does not know what the values of the 2 fields the calculated field is trying to compute, and therefore, cannot fill in the ID field, to continue adding the data.

Can someone help me with this ?

I know I am missing something script related, but I have not been able to figure this one out yet.

Lotus Approach was so much easier for this sort of thing !

Thanks,

John Martoccio

If you exit the record immediately after creating it, it forces filemaker to update the calculated fields and then the relationship should work. To exit the record, click somewhere on the layout outside of a field. If you are using a script to create new records (a good idea), then include an Exit Record script step right after the create record step.

Or you could change the Right Side calc to an auto-entered calculation.

This is particularly true for Constant relationship, where you can have a constant based upon 2 indexed calcs (=1), but you won't be able to create related records through this relationship.

By changing the right key to an auto-entered value of 1, it will work.

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.