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

Setting the value of field in a portal row with a value taken from a field in a previous row?


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

Recommended Posts

Posted

I want to populate a field of a newly created record in a portal row with the value of the field in the record right above it (with a secondary key). I'm trying (wanting) to do this via an Auto-enterd Calculated Value and I've got my FileMaker 9 Developer Reference cracked open but I just can't figure out a way to make it happen.

In the past I've done this with a script that creates a new record in the portal but I in this case I need to have it so that writing in the portal window creates the new portal row record.

Posted

You need a self-join relationship of the child table, e.g.

Child::ParentID = Child 2::ParentID

AND

Child::ChildID > Child 2::ChildID

Sort the related records on Child 2 side by ChildID, descending, and auto-enter data from Child 2.

This assumes your existing portal/relationship are not sorted by another order.

Posted

Yes, ... a self-join relationship. I think that should work. The records are sorted by another field in addition to the one whose value I want to inherit but that sort is the secondary one.

I'll give this a whirl. Thanks.

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