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.

Printing Related Records on One Report Line

Featured Replies

I have a two table FMP database (I will over simplify for efficiency's sake). The main table is a customer table with Name and Custom ID and the related table is a purchases table with date of purchase and the single item purchased. I would like to create a report that lists each customer and then on the same row the products the customer purchased.

For example, if customer John Smith purchased products A, B, and C I would like John Smith's row in the report to reflect A, B, and C on the same line as the customer's name, not via three lines for John Smith with one each having A, B, and C. Does my question make sense? Hope so. Any suggestions would be great.

It can be done. Try this method from the Filemaker Knowledge Base, answer ID 2403:

To copy data to one field from multiple portal records do the following:

In the master database add fields:

Combine (Text)

GobalCounter (Global) - Number

KeyCounter (Calculation) - Number - Count(Relation::KeyID) - KeyID used as the relationship link field

Use these script steps:

Set Field[GlobalCounter, "1"]

Set Field [Combine, ""]

Go to Portal Row [ select, First ]

Loop

Copy [ select, "Relation::Fieldname"]

Paste [ "Combine"]

Set Field [Combine, Combine & "¦"]

Set Field[GlobalCounter, "GlobalCounter + 1"]

Go to Portal Row [ select, "GlobalCounter" ] - specify by field value

Exit Loop If [ "KeyCounter < GlobalCounter"]

EndLoop

What this script does:

First, the script "initializes" the GlobalCounter by setting it to 1, and then clears out the Combine field (so that it starts out empty). Then, starting at the first portal row, it loops through all the portal rows, copying the related Fieldname and pasting its value into the Combine field. Then, after each related value is copied into Combine, it appends a Carriage Return to the Combine field, so that the next related value appears on the next line. (This is optional). It finally exits when it has cycled through all the related records.

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.