Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Auto-creating related records

Featured Replies

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)?

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.