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

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

Recommended Posts

Posted

If I have a script that needs to address field1, field2, field3, field4

(all numbered sequentially)

can I have the script act on those fields using a scriptparamter ?

so.. to address the first field,

i would set scriptparameter=1

then in the script:

if ( table::field&get(scriptparameter) = 4; "")

if not that way, is there some way to achieve this ?

also..

could I address repetitions of a repeating field with a script parameter

if(table::repeatingfield[get(scriptparatmer)])=4 ; ""

??

Posted

You could do the addressing by using the GetField function. For example, using a variable to carry the field name.

SetVariable[$$fieldname;Value;"table::field" & Get(ScriptParameter)]

If [GetField($$fieldname) = 4;""]

will, I think do the trick.

Regarding repeating fields you simply put the formula into the repetition brackets [ ] in the calculation dialog box. FMP8A will happily accept this - so long as it is a valid calculation.

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