Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[logical] calculation field fill in

Featured Replies

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?

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

  • Author

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

...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 ]

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.