Jump to content

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

Recommended Posts

Posted

I'm a complete newbie in FM-pro land, so i'm sorry if the answer to my question is too easy.

I have a field with a calculation (case.. etc), now I want to have the option that if the calculation turns out to be the standardresult, I can just manually fill in the field.

Is this possible, if yes, how?

Posted

You cannot enter data into a calc field, but you could apply the calculation as the Auto entry to an ordinary field.

Posted

Ok thanks,

so far so good,

but, after I changed the calculationfield into a text field with a calculation, FM doesn't automatically update the field if the outcome of the formula given in this field is changed

Posted

...or if the calculation should be evaluated when some other fields change:

Create an auxiliary field "userInput", than change definition of your original calc to something like this

code:


yourCalcField=

Case(yourTest1,res1,

yourTest2,res2,

ect

userInput)

The last entry in the above case statement is the default value if neither of tests evaluate to true. Now put those two fields on layout in order with yourCalcField above inputField and disallow entry in both fields. Group them.

Create an script:

code:


If[yourCalcField=Case(yourTest1,res1,

yourTest2,res2,ect)]//without the default

ExitScript

else

Go to Fielf["userInput",select]

end if

attach the script to yourCalcField

HTH

Dj

[ April 10, 2002, 04:14 AM: Message edited by: dj ]

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