Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

using repetition field 1 in script - FMP10 problem


This topic is 5728 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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*

Posted

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

Posted

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.

This topic is 5728 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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