servebot Posted November 17, 2004 Posted November 17, 2004 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
-Queue- Posted November 17, 2004 Posted November 17, 2004 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(
CoZiMan Posted November 18, 2004 Posted November 18, 2004 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, 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?
Søren Dyhr Posted November 18, 2004 Posted November 18, 2004 What do you think? I think I would like to see a template...Please? --sd
transpower Posted November 18, 2004 Posted November 18, 2004 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.
servebot Posted November 18, 2004 Author Posted November 18, 2004 Thanks, I'll try out all your suggestions. Too bad FM7 doesn't just us do it in a more straightforward way! --- Michael
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now