Jump to content

Global Container field calculations

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

Recommended Posts

  • Newbies

I'm having a lot of trouble with calculations involving global containers.

For example:

If I set up 2 global container fields and paste small graphics into the first.

the script:

set field ("field2"-2,"GetRepitition(field1; 1)")

just returns blank despite the fact field 1 contains a number of graphics in successive repetitions.

It all works fine for "field2"-1. But i cant set anything beyond the first repetition of field 2.

I dont understand it.

Link to comment
Share on other sites

  • Newbies

Yes, Basically the problem is the GetRepetition step. It returns null for everything except the first. This has to be a software bug.

Sadly I bought Dev6 months before they released 7 and payed full price. Is it fair to be forced to upgrade because the software doesn't do what it's supposed to!

Link to comment
Share on other sites

In versions < 7, GetRepetition requires an addition for number, date, time, and text fields beyond the first repetition, i.e. GetRepetition( field, X ) & 0, GetRepetition( field, X ) & TextToDate( "" ), GetRepetition( field, X ) & TextToTime( "" ), and GetRepetition( field, X ) & "". There is no such workaround for container fields, however.

By the way, for the primary repetition, GetRepetition is not required. 'GetRepetition( field, 1 )' is the same as 'field'. Also, it's not needed for setting a field with the same repetition number, e.g. Set Field [field, -3, field2] sets field with the third repetition of field2. So GetRepetition is only needed when the repetition to be set is not the same number as the repetition being grabbed.

Unless you can tweak your file to match the repetitions, you'll probably have to resort to Copy/Paste, unfortunately.

Link to comment
Share on other sites

This topic is 6435 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.