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.

Repeating Field To Repeating Field NOT WORKING

Featured Replies

I’m having some issues trying to populate a repeating field from a repeating field.

Example field “s” repeats 4 times and field “j” repeats 4 times I want to set field “j” to = field “s” via a script I’ve tried the Set Field [“s-3,Get Repetition(J,3)”] and I just cannot get this to work except for the first reparation.

Can someone please try and see if they can get it to work, I’m totally at my wits end, and thinking this maybe a bug in the program.

I’m using ver5

Thanks

Ron Bascom

crazy.gif" border="0

  • 3 weeks later...
  • Newbies

Hi Ron,

I don't think this simple programming device is possible in Filemaker scripts. The work around is to use and intermediate temp field i.e.

SetField ( temp, GetRepitition(3, field)

SetField (result-3, temp)

just remember to make the global temp the same type as the repitition fields.

Hope this helps

Michael Dalton

This is one of the reasons why repeating fields are "discouraged." Related fields and portals are much, much more flexible and easier to work with.

You can't use looping when trying to do what you stated. For every field on the left side of the SetField statement, you need an individual SetField:

SetField(j-1,GetRepetition(s,1))

SetField(j-2,GetRepetition(s,2))

etc.

It's pretty clutzy and a pain to work with, but at times it has its uses.

  • 2 weeks later...
  • Author

Thank you so much for the replies. What we did as a workaround was to set a non-repeating field to temporally hold the data, then set the repeating field from that data.

What should have been a couple of lines of script ended up being over 200 :-(

P.S. I was beginning to wonder what was going to ware out fist the mouse button or my click finger.

Ron Bascom

shocked.gif" border="0

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.