Can a PG2 button call and populate a blank graphic template?
I am working under 800xA PG2 graphics package.
Say for example that I have 10 pumps that are identical. On my main graphic, I need a button (or anything) that is capable of calling a template AND populate it with tags unique to that pump. For example, if I hit the [Pump 1] button, it would call up the single template and show me the status, rpm, etc of Pump 1. If I hit [Pump 2] button, it would show Pump 2's statuses, and so on for the other 8 pumps.
I don't want to create 1 graphic for each of the 10 identical pumps. I want only 1 that accepts input properties from the other graphic, not from the configuration screen.
Has anyone done anything like this were one graphic element sends its input properties to a graphic?
Answers
Check out the LateBoundPropertyRef() function.
Much slower than early (regularly) bound properties, but have the benefit of being evaluated on the fly as required.
In small amounts Late Binding does not hit performance that bad.
The button(s) update some property hosted in the display which in turn is used in the Late Binding functions to point to the object(s) to subscribe from.
Add new comment