I would like to execute a script when a Tag change value. Is this possible? If yes could someone share, if not possible, what could be the alternative?
I'm trying to execute a script in the Project Library.
The main idea is when the tag change I would like to print a label (send the command to print). I already did the function to print, but only works if the user presses the button, I need the system to print when I have the tag changed or execute the same function as pressing the button.
Sorry, I think I was not clear with my question, I will change it.
Thanks for the answer.
I already tried that, I'm trying to execute a script in the Project Library.
The main idea is when the tag change I would like to print a label (send the command to print). I already did the function to print, but only works if the user presses the button, I need the system to print when I have the tag changed or execute the same function as pressing the button.
These are defined in the project, so can call scripts in the same project.
Also consider using tag binding to Perspective session/page/view custom properties, then using a Perspective Property Change Script. These can also call scripts in the same project, but also have access to the User Interface components at their scope.
{ Do remember that all Perspective scripts run in the gateway, so will see printers and such from the gateway's viewpoint. If you have this working on a Perspective pushbutton, you should be fine. }