Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Related Fields Not Displaying Immediately


This topic is 7502 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I've got a direct relationship based on four fields. The relationship is valid after I fill in all four fields, but related fields on the layout do not fill in immediately, not even when I exit the record. However, they do fill in if I close the file and open it again. There are other circumstances where the fields show their proper data, although I haven't isolated exactly when this is. For instance, while I was investigating the fields and relationships, when I went back to the layout, the fields were filled in.

Has anyone else experienced this? I'm using FileMaker Developer 7.0v2, but the behavior is duplicated in Pro.

Thanks,

Chuck

Posted

I think I figured it out, at least part of it. Three of the fields are calculations that are based on related data from another table. The user doesn't edit these fields, of course, they edit the local fields that complete the relationship to that third table. If the user fills any of these fields last of the four, the relationship doesn't update properly. One of the match fields for the relationship that isn't filling in immediately is entered directly by the user. If this field is entered last (or edited after the other fields have been completed) the troublesome relationship immediately updates.

So what we have is four fields that the user edits. Three of them create a valid relationship to other tables, which completes three calculation fields that are then used as match fields to another table. FileMaker is apparently unable to update the calculated key fields when they are based on related data (perhaps because they are unstored?) and immediately complete a relationship based on those key fields.

I don't recall if this was a problem in Pre-7 when relationships could only have a single match field, so calculated multi-keys were the norm. I'm going to try creating a multi-key and see if that has better luck updating, although I doubt it will help, since, if my theory is correct, the problem will be the same (key field that is a calculation based on related data).

In the mean time, I've placed a button on the layout labeled "Refresh" that simply enters preview and then browse mode, and this forces the data to appear.

Any other thoughts on this would be appreciated, as I find the Refresh button quite a kludge.

Thanks,

Chuck

Posted

Hi Chuck,

I would bet that part of the answer is here

Chuck said:

The user doesn't edit these fields, of course, they edit the local fields that complete the relationship to that third table.

"local fields".

When a relatonship is based upon a Left calculated key, which value is evaluated using a distant "global", the related records would not update.

I have the feeling your situation is not that different, even if you didn't indicated the use of a global, and this situation appeared in pre-7 versions.

So what happens if you build your Left Key using local scripted "sub" keys, how exactly do you fill these "local fields" ?

Posted

Three of the key fields that the relationship is based on are calculation fields that are based on related data. This is where the problem seems to lie. The calculations get updated, but the relationship that is based on them doesn't. I've found in the short term that the Refresh button is satisfactory.

Thanks,

Chuck

This topic is 7502 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.