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 populate related tables?

Featured Replies

Hi all,

I'm kinda new to this but been around programming and filemaker for a while now.

I would like to be able to create 18 records with similar core information in one table from a related table and I'm not sure how to do this.

Basically I am registering a learner on a programme and there are 18 separate units on the course. I want one record per unit in my Modules table to reflect this, which is linked to the learner information table. When i have added a new learner to this table I want to be able to hit a button and have the 18 records - 1 for each unit, created in the Modules table and ready for recording their progress through the course.

Does that make sense? Hope you can help guide me here....:(

many thanks

Rich

Assuming I understand this correctly, you have a table like Students and another table StudentModulesTaken.

When a student is created, you want to create 18 StudentModulesTaken records?

I cannot think of anything short of a button that invokes "Perform Script" on a custom script to do this.

The basic flow of the script would be to get the "primary key" or ID field for the StudentTable, then go to a layout for the StudentModulesTaken table, and start creating 18 records with the necessary items. There may be some fancy shortcuts, but at the end of the day, that's what you are going to be doing.

  • Author

Hi there,

Yes, you have it absolutely right - that is exactly what I am trying to do. I have the basic process in mind, and I was hoping for some guidance in clever scripting jiggery-pokery with some kind of looping structure.

Thanks for your advice and time.

R

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.