Jump to content

SetFieldByName (Indirection)


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

Recommended Posts

Puppy Dogs and Wagging Tails...

Up to now we have been able to target a single field with dynamic conditional data. (the wagging tail)

Now we have the ability to targeting a field programatically and the data results as well. ( two wagging tails :P )

Since double clicking on the Set Field or Set Field By Name script step defaults to opening the first target field "specify" when we always wish for the second specify to be the default dialog.

To put all the logic in the first "Target Field" Specify calc dialog using Let.

Let ( [

$field = >

$result = > ;

];

$field

)

Then in the second calculation (non default ) put $result

I suppose now you could make the data more abstract by moving your logic in to variable script steps, towards the top of your script and then simply in this script step use $field / $results as the value to be evaluated.

I had tried to see if I could do the inverse by putting the logic into the second calc box and have the target field just evaluate $field but it seems that FM evaluates the first calc box first then it evaluates the second.

Stephen

Link to comment
Share on other sites

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