Jump to content
Server Maintenance This Week. ×

Auto-creating related records


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

Recommended Posts

I have a script that performs a find, then does some other things. I want it to finish by creating one related record for each found record, setting a particular related field to info put into a global field in the parent file.

I can do this the hard way by shuttling between the parent and child files, with multiple scripts. Is there an elegant way to accomplish this (such as a "new related record" command, or some such)?

Link to comment
Share on other sites

quote:

Originally posted by danjacoby:

I have a script that performs a find, then does some other things. I want it to finish by creating one related record for each found record, setting a particular related field to info put into a global field in the parent file.

I can do this the hard way by shuttling between the parent and child files, with multiple scripts. Is there an elegant way to accomplish this (such as a "new related record" command, or some such)?

Nope!

Use a "New record" script in the parent file, which calls a "New record" script in the child file.

You could also use a portal on the screen, goto the last portal row and add some data, but I find this to be a pretty ugly way to do it and not really any easier than the two script method.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Senior Filemaker Developer

http://www.inthescene.com

mailto:[email protected]

=-=-=-=-=-=-=-=-=-=-=-=-=

Link to comment
Share on other sites

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