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

Creating a related recored without using a portal


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

Recommended Posts

Posted

Hi all,

In the past I have just used portals to create related records, but for this project that just won't work.

I guess I would need to attach a script to a button to either switch to the related table or open a new window with the related table and create a new recored, but I don't have any idea how to automatically get the match field serial number from the parent into the new record.

Thanks in advance for any and all help.

Posted

you can use a scripted button and just do something like this:

Set Variable [$parentkey ; keyfield]

Go to layout ["relatedtable" (related table)]

Set field [parentforeignkey ; $parentkey]

Commit Record

Posted

...or you can pass the key to the button as a script parameter and :

Go to layout ["relatedtable" (related table)]

Set field [parentforeignkey ; Get(ScriptParameter)]

Commit Record

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