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

Recommended Posts

Posted

Hello,

I have two related databases, [Customers] and [Publications]. To switch between them I'm using the "Go to Related Record" command. This works fine if related records exist.

However, when a related record does not exist I want to create a new record. I'm assuming I need a conditional statement to trigger this. Which command should I use and how should it look?

Thanks,

Kelly

Posted

Best way to create a related record is through a portal. That way, you can be certain that the relationship is properly created.

If you just want to create a new record in the other file, create a script in that file that creates a new record, then in the first file create a script that performs an external script -- you can guess which one.

HTH,

Dan

Posted

You can detect an error resulting from the "Go to related records" failure and use that to trigger the creation of a new record.

Go to related record

If (Status(CurrentError) = 101

Perform Script (your new record script)

else

.

.

.

end if

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