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

Child aware of order of appearance in parent table


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

Recommended Posts

Posted

Hi all,

Im facing this little puzzle and I wonder if anyone can help.

I have a Cases table and a CaseIndividuals Table.

What I would like to do is when creating a child in the CaseIndividuals to automatically assign an arbitrary name (i.e. Individual_2) to the individual before completing FirstName, Lastname etc. (Name Fields may never be completed)

So far, the only solution I have found is to use a self join for CaseIndividuals in order to count the same CaseID occurences. Using that I can suffix the "Individual_" with the total number of records for the same case.

The problem however arises if I delete one of the individuals in the meantime and then create a new one. For example if I have Individuals 1-4 and delete No3, then when entering a new one it would be named "Individual_4", whereas I would like to be able to rename Individual_4 to Individual_3 (compensating for the previously deleted) and then add a new one. And all of that automatically :

Any ideas?

Posted

This can be done by changing your self-join to include individuals with the same CaseID AND a smaller serial ID, and using an unstored calculation field for the count.

However, this means any deletion will instantly rename all "younger siblings" - so the question is whether you have any use for names that are not permanent.

Posted

Hahaa, indeed, but what I was really looking after was to have the same numbering on the children table , when viewing details.

Otherwise, the @@ symbol is what I use too.

Hence the title "children aware of order"

This topic is 5190 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.