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.

One to Many Relationship Without a Portal

Featured Replies

Very Simply, Two databases. One for movies one for theaters. A movie is playing at multiple theaters (a theater hosts multiple movies, for that matter, but I'll keep my question "bite-sized"). I want a field to list these theaters (theater 1, theater 2, etc). I have a list of the theaters in a portal, but I need to format an export that is a comma delimited list.

Anyway, I stripped down my examples to the bare minimum, I hope that someone can help, thanks in advance.

FileMaker Version: 5

Platform: Mac OS 9

That icon looks familiar...

Create a Global text field in theater. Use a script to loop through each record, appending a comma and the theater to the global.

Set Field [ gTheaterList , gTheaterList & ", " & theater ]

  • Author

Thanks for the response, although I'm still a little confuzed.

"Use a script to loop through each record" I'm assuming a find script based on movie titles (I guess ID's would work better). So that, I get.

"Set Field [ gTheaterList , gTheaterList & ", " & theater ]" is what has me scratching my head. What is gTheaterList? (Global Field Theater List, I'm assuming) What is the process by which it keeps repeating itself?

Thanks again for the help....

A script like this is used to build the global with all the records' values from the theater field.

Go to Record/Request/Page [ First ]

Set Field [ gTheaterList , theater ] //sets the first theater in the global

Loop

Go to Record/Request/Page [ Exit after last, Next ] //goes to the next record

Set Field [ gTheaterList , gTheaterList & ", " & theater ] //sets a comma and the next theater in the global

End Loop

The result will be "a field to list these theaters (theater 1, theater 2, etc)" in comma separated format.

  • Author

Thanks, that works great. I actually made a mistake in copying it. Made it work with portal rows. I'll maybe try records too.

Again, thanks so much for your help.

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.