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.

using repetition field 1 in script - FMP10 problem

Featured Replies

Is it me or has FMP 10 changed the way to obtain the contents of the first field of a repetition field.

Many many scripts are having bugs suddenly. In FMP 9 it works perfect.

Unless I use the GetRepetition( field; 1) they are not working properly. Quite a pain in the #$@@ :

*sigh*

Can you post a simple file showing the problem?

  • Author

It took me some time to break it down into a small piece.

Can even get smaller but here is the basis of my setup.

I notice that it is not a matter of version FMP9 or 10. But I believe somewhere in the upgrading I'm started to get this problem.

In the example you can see that GetRepetition is needed for the first field in orde to have the script to work.

GetRepetition.fmp7.zip

You didn't say there were TWO repeating fields involved. The way it works when you set a specific repetition of a field, and there is a repeating field referenced in the calculation, Filemaker automatically gets the corresponding repetition of the referenced field. IOW,

Set Field [ RepeatingTarget [3] ; RepeatingSource ]

is interpreted as:

Set Field [ RepeatingTarget [3] ; RepeatingSource [3] ]

There's no change here, it has been that way since forever.

  • Author

I see. Thanks for making it clear.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.