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

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

Recommended Posts

Posted

Is there a way to dynamically specify a field in a "Set Field" script step?

In other words, can I "Set Field [calculated field name; calculated/stored result]"?

I have come across one solution that loops through fields on a layout that is not visible or modifiable by the end user:

http://www.fmforums.com/threads/showflat.php?Cat=0&Number=138056&an=0&page=0%23138056

Is there any other way to do this? I have 13 scripts that are all 3 lines long each. These scripts are very similar and just use set field commands to set values in particular fields in several different tables. I would like to bring this down to one script and use script parameters to pass along what table and what field I want to set.

Thanks

Dave

Posted

No, that's why the looping solution exists. wink.gif

You can use script parameters with the looping script, and Get(ActiveFieldTableName) and FieldNames( Get(FileName); Get(LayoutName) ) to ensure you're on the appropriate layout and the desired field exists on it.

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