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.

Global Container Repetition question

Featured Replies

I have two global container fields, each with 5 repetitions.

I want to script the updating of the repetitions in g_containerA from the like-numbered repetitions in g_containerB. I've constructed the following script:

Set Field [ g_containerA, GetRepetition(g_containerB, 1) ]

Set Field [ g_containerA-2, GetRepetition(g_containerB, 2) ]

Set Field [ g_containerA-3, GetRepetition(g_containerB, 3) ]

Set Field [ g_containerA-4, GetRepetition(g_containerB, 4) ]

Set Field [ g_containerA-5, GetRepetition(g_containerB, 5) ]

When I run the script, only the first repetition of g_containerA is set from g_containerB. The other 4 repetitions in g_containerB remain empty.

Arrrrgh! What am I doing wrong? confused.gif

TIA for your help.

Platform: Mac / Version: OS 10.3

FileMaker Version: 6.0.4

Jim McKee said:

I have two global container fields, each with 5 repetitions.

I want to script the updating of the repetitions in g_containerA from the like-numbered repetitions in g_containerB. I've constructed the following script:

Set Field [ g_containerA, GetRepetition(g_containerB, 1) ]

Set Field [ g_containerA-2, GetRepetition(g_containerB, 2) ]

Set Field [ g_containerA-3, GetRepetition(g_containerB, 3) ]

Set Field [ g_containerA-4, GetRepetition(g_containerB, 4) ]

Set Field [ g_containerA-5, GetRepetition(g_containerB, 5) ]

When I run the script, only the first repetition of g_containerA is set from g_containerB. The other 4 repetitions in g_containerB remain empty.

Arrrrgh! What am I doing wrong? confused.gif

TIA for your help.

Platform: Mac / Version: OS 10.3

FileMaker Version: 6.0.4

You're being too specific. It's understandable, seems like you oughta to things that way. But no; try this:

Set Field [ g_containerA, g_containerB) ]

Set Field [ g_containerA-2, g_containerB) ]

Set Field [ g_containerA-3, g_containerB) ]

etc.

FileMaker knows enough to map them properly.

If you are going to go with your original approach you need to make FileMaker think a little harder:

Set Field [ g_containerA, "" & GetRepetition(g_containerB, 1) ]

Set Field [ g_containerA-2, "" & GetRepetition(g_containerB, 2) ]

etc.

Platform: / Version:

FileMaker Version:

Platform: / Version:

FileMaker Version:

  • Author

Bruce ...

Worked gr8! Don't know why it works, though. Can you point me to something in the docs, a KB artnum or something that explains this?

Thanks a million X 5 repetitions wink.gif

Platform: / Version:

FileMaker Version:

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.