Is there a way to trigger a msgbox (D-V Operate) from a Control Module Parameter?
I understand that, usually, a msgbox (or any sub for that matter) would be trigger from a event on a page (button click). However, I would like to trigger a msgbox popup on the change of a control module parameter.
I would put all my conditions into a CND bloc, and the output (a parameter) would trigger the msgbox when changing to "true". Clicking "OK/YES" on the msgbox would reset that parameter to "false".
I have it working fine when I "click" to change it to true, but are unable to "read only" the parameter to trigger the msgbox.
Is there a way to do that, or I have to draw the "messge box" as a graphic item?
Thanks,
Pierre.
You can create a picture variable and link this variable to a parameter from a module. Then you can have a script run when that datavalue changes and then show your message box.
Here is the process:
With your picture open, open the DeltaV toolbox (if not already open) and click the icon with the paperclip.
Then fill out the form making sure to pick the right type of variable.
Then find the variable in the system tree and right click and select Edit Script. The default should be OnChange but you can also select OnTrue or OnFalse for when you want your script to execute.
The problem with this method is that it will only execute when the picture is open so if you want this to run regardless if a picture is open or not, you will need to go the scheduler route or put this variable in the toolbar or alarm banner which is always open.
Regards,
Matt
In reply to Pierre_Dion:
In reply to Matt Stoner:
In reply to amodbobade:
Andre Dicaire
In reply to Andre Dicaire:
In reply to jiahui: