Newbies eleven24 Posted November 15, 2006 Newbies Posted November 15, 2006 I'm trying to setup a utility script that I can use throughout my application to update a field based on a ScriptParameter. In short, this is an example of what I want to do: Toggle the value in the field Invoices::checkbox_value between 0 and 1. When a button is clicked it triggers a script named "Utility|ToggleCB" and sends a scriptParameter value of "Invoices::checkbox_value" along with it. (Note: the script parameter is the actual NAME of the field, not the value) The script then needs to determine the value of the field sent via the scriptparameter and act accordingly. My problem is getting that variable, or script parameter turned into the actual field value. My bigger problem is multiple programming languages floating around in my head telling me a myraid of non-FM ways to do this. Any help would be appreciated.
mr_vodka Posted November 15, 2006 Posted November 15, 2006 Well to get the fields value after passing its name as text via the scriptparameter, you can use either the Evaluate() or GetField() to get its value. However, you can not directly assign values to a dynamic field name so it may not help you much anyway. It is a FM limitation that urkes many of us. Take a look at this option though. It used to be on the FM forums home page but since been pushed off of it with other stuff.
Recommended Posts
This topic is 6585 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