July 8, 200025 yr 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)?
July 8, 200025 yr 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] =-=-=-=-=-=-=-=-=-=-=-=-=
Create an account or sign in to comment