Skip 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.

Script merging related fields

Featured Replies

I'm using FileMaker 4 on Windows

You don't want to hear what I have tried, so here is the problem. I have two related databases Courses and Students. From the Courses database I want to print a letter from a found set of students in the Students database.

Record_number is the key field.

I prepare the letter in the Courses Database with Record_number, First_name and Last_name related fields from Students Database.

I find the students that should receive the letter and create a script:

Freeze Window

Perform Find Request 1

Restore find request Mail List Yes

Loop

Copy Record_Number

Select entire contents

Open Filename: "Courses.FP3"

Paste Courses::Record_Number

Perform Script External: Courses.FP3

Sub-scripts Print_Announcement

Go to Record/Request/Page

Next

Exit after last

End Loop

The Print_Announcement external script I have in Courses is:

Go to Layout Course_Announcement

Print

No dialog

I need a script in Courses or Students that will print a students first and last names in the letter from the found set, go to the next students name, print the letter and continue through the found set in the Students database.

I'm perplexed once again but I'll keep trying, I have just run out of ideas.

It seems easier to print the letter from the Student file. Then you would just need to set a global in Student with the current Course Number, and use a relationship from Student::Course Number to Course::Record Number to see any Course info on that letter. Then when you can print the found set in one Print[] step.

  • Author

The reason I didn't want to print from the Students database is the letter would be part of a students record. I would prefer the letter be part of the Course database record.

Any help on this one?

Edited by Guest

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.