Is it possible to use Late Binding to view a Graphic element dynamically?
I want to view a grahic element dynamically based on a variable from the controller or an expression variable.
Is it possible to use Late Binding and if so how do I conf it?
Voted best answer
> "Is it possible to use Late Binding" - Probably, but I'm not sure how exactly.
> "and if so how do I conf it" - Its not easy in this case. Your controller variable would have to be set up BEFORE the graphic was opened. If the variable changes while the graphic is open, then it will not bind again. What would you do if the graaphic was opened on two different stations ? How do you know when to change the variable in the controller ?
In addition - late Binding is just plain "broken". The performance is TERRIBLE, and the more late binding you do, the longer it takes to open a graphic. Really, its a bad solution. Dont do it.
You would be better to just move the required value from the various different sources into a single variable for display.
Late Binding is used when you don't know the information of something when writing the code. Where the property having the information is located does not matter, regarding xA aspect system or Controller.
Read the Help regarding LateBinding in the PG2 Editor.
You can also install the New Graphics demo, to see example of how using it.