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 5269 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

Hi,

I wrote a script for a button that is intended to create a related record in a new table. The logic of the script is supposed to be:

1. If there is no related record in "Monitoring Data Entry", then create one and automatically populate three fields.

2. If there is a related record, go to it.

It works most of the time, but for some reason, some records end up with two related records, and usually the second does not have the correct values for the fields I am trying to auto-populate (mdeNestID and mdeSpecies). I have attached the script as a jpeg. Any advice on why it does not quite work correctly is much appreciated!

Script.jpg

Edited by Guest
Posted

Well that makes sense - sorry I didn't include it originally. "Thesis Data" is where the button is located. "Monitoring Data Entry" is where a new record is created or an existing record is pulled up when the button is pressed. Each record in "Monitoring Data Entry" is basically a header that sits over a portal to "Monitoring Data."

In the relationship graph, it goes:

ThesisData->MonData->MonDataEntry

I've attached a jpeg for the ThesisData->MonData relationship, and one for the MonData->MonDataEntry relationship.

MonData_MonDataEntry.jpg

Thesis_MonData.jpg

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