Jump to content
Server Maintenance This Week. ×

Set Field Dynamically?


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

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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