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

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

Recommended Posts

Posted

I'm looking for some way to change the contents of a field similar to the Set Field script step, except I want to use a calculation to determine the target field instead of choosing from a list.

Is there a way to do this in FM7?

Thanks for your help,

Michael

Posted

The only way to do this easily AFAIK is loop through the fields on the current layout and exit when the current field name equals the calculation.

If [Position(

Posted

Another way might be to use a global repeating field calculation to hold ALL the field values to POSSIBLY be replaced and then skip (**with calculated value**) to the repetition holding the info, change it, then re-write all reps BACK to each field.

You know which field each line goes to, wink.gif The same script writes them.

Depends on the performance hit based on searching the number of fields in the layout versus how many will / could change.

What do you think?

Posted

Since you have Developer 7, you could use the custom matrix functions. If you set the elements of a matrix to contain the various fields involved, you could use SetCell(matrix;row;column;value) to set the cell of the matrix you wish to change. The row and column could be determined by calculation.

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