Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

last daughter ID


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

Recommended Posts

I have table X which is related in a one-to-many relationship with daughter table Y. I am wondering if its possible to create a calculation field in table X that will automatically calculate any of the following:

1. the value of the first related Y ID field

2. the value of the last related ID field

3. the number of Y related records.

I can imagine how this could be done via a script but I'd like to have this available without requiring a buttonpress.

Link to comment
Share on other sites

Assuming Y ID always has a value (though Last() would still work if not), and that the Y relationship is not sorted. Unless I'm not understanding, these are very simple.

1. Y::ID (does not need calculation field, unless you're using it locally for another relationship)

2. Last ( Y::ID )

3. Count ( Y::ID )

Link to comment
Share on other sites

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