August 8, 200322 yr I am trying to set repeating global container fields with a script. There are two icons. The is a choice field of ABC or D There is a repeating container field that I want the script to set all repeats the same except the field that corresponds to the choice (ABCD) Please attached setContainer.zip
August 9, 200322 yr Looks like there's a bug when using the Set Field command for a repeating field in combination with the Get Repitition command (global fields or not, container fields or not) - at least in FileMaker 5.5. Instead of using a Repeating Conatiner field for the Icons, separate it out into two fields: gIcon1 and gIcon2. Everything then works fine. Set Field ["gImage", "If(gChoice = "A", gIcon1, gIcon2)"] Set Field ["gImage"-2, "If(gChoice = "B", gIcon1, gIcon2)"] Set Field ["gImage"-3, "If(gChoice = "C", gIcon1, gIcon2)"] Set Field ["gImage"-4, "If(gChoice = "D", gIcon1, gIcon2)"] Yet another good reason NOT to use repeating fields.
August 9, 200322 yr Harry is correct. You must use an intermediate field to copy from one repeating field to another or eliminate one of the global fields. This is unlikely to be fixed as repeating fields are a dead issue and to be avoided in almost all cases. -bd
Create an account or sign in to comment