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

Accessing related values for a calculation


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

Recommended Posts

Posted

Does anyone know a way to access related fields in a calculation so values (other than the first matching value) can be retrieved? In a repeating field this can be done with the GetRepetition function. I'd like to be able to, for example, access the 7th related record meeting the relationship criteria without having to create a portal and a script to loop through the portal rows.

I realize this is not a built in feature of filemaker but I'm wondering if there are any new tricks in FM7 or plugins which might enable this.

Thanks...

Posted

How so? I don't understand how to make that work in this case.

Perhaps I didn't explain clearly what I'm trying to do. Imagine that you have a table called "Teachers" where each record represents a different teacher. Within a layout is a portal which shows the names of Students assigned to a given teacher from a related table .

How can I create a calculation of type text which returns: "Teacher Jones, your students names are Alice, Bob, Charles, ..etc." Or a second calculation which retruns Student #2 = Bob.

Thanks.

Posted

Create a value list in the Teachers file based on the related field you want to list. If there's a chance there may be duplicate names, add the related serial as the second field in the value list definition and sort by it. Then create an unstored calculation text field of Substitute( ValueListItems( Get(FileName); "yourvaluelist" ); "

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