Anuviel Posted March 11, 2008 Posted March 11, 2008 Hi, I am trying to achieve following: I use a field as a button. I want to attach a script to it that will take the value of that field and set it as a global variable. I want to be able to attach said script to couple of fields but I do not want to hard code the field names into the calculation. Something like: Name: $$Field_Name Value: Get (ActiveFieldContents) I need that script to set the value of the field as a variable. Basically I would like to do this if it makes sense and if it is possible. Script_I Set Variable [$$Layout_Name; Value Get (ActiveFieldContents)] Script_II Perform Script ["Script_I"] Go to Layout [$$Layout_Name] I just do not know how to specify via calculation or how to tell the script that the field I clicked on is the field whose data I want to pull into $$Layout_Name Variable and I do not know if that is even possible. Hope this makes sense. Thanks for the help.
Anuviel Posted March 12, 2008 Author Posted March 12, 2008 I just saw this in FM help: There is a named button on the current layout called cancelButton. When the button is selected, Get(ActiveLayoutObjectName) returns cancelButton. I tried this but cannot get it to work. I thought that it might work by setting Get(ActiveLayoutObjectName) as a script parameter so that when a button is clicked it becomes active layout object so its name would be passed in the script but I cannot get it to work. Guess one more thing to giveup on...
Anuviel Posted March 12, 2008 Author Posted March 12, 2008 Never Mind, just set a Script Parameter to equals the button name.
Recommended Posts
This topic is 6161 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