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

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

Recommended Posts

Posted

Let's say you have a portal, and you "allow creation of related records".

What if you wanted the related records (children), to be numbered sequentially FOR EACH parent as you enter them.... eg: each parent's first child will be "1", the second will be "2" etc. I understand that you can display the line number, but I'd like the number to be stored in a field in the related record.

I know how to auto-enter a serial number... but this is a little different because it is specific to each parent.

--

Jason Wood

HeyWoody.com

Posted

Use this auto-enter calculation:

Max(ChildrenByParentID::ChildNo)+1

The Relationship should be a selfjoin in the child file based on the parent ID so that you are only finding the Max of the children of the one applicable parent.

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