How do you creat complex widgets that function as operational procedures.

George Amend shared this question 5 years ago
Answered

How do you create a complex widget that accepts local variables. For example, I have an object that clears a variable value, retrieves a new value operates an interaction that contains ten conditionals each with a different action based upon the value of the variable. It then cycles through 4 additional interactions before ending for a total of five interactions. When copied and pasted all actions are dropped and only the conditionals remain. I use this object to create an interactive bar graph. I have attempted to use this with hide and show as well as dynamic panels. The action statements are dropped every time.

Comments (2)

photo
1

Group all of the elements together before copying. Then, once you copy them the events should be also in the copy.

photo
1

I want to 1) hide some screen elements 2) display a changed variable with label 3) show the screen elements again with the new variable value. The hiding and showing of screen elements is common across a number of conditions, so I don't want to duplicate the actions, but when I try to copy actions and just add new conditions so I can cycle through some variable values, it doesn't let me.