Good day Guys. The first 3 image represents that I am trying to initialise a global variable "a" to be 1 whenever i press the button. And the value represented by variable "a" will be stored as "msg.test" and to be used in other FLOW.
The last 3 image shows the other flow that I am trying to obtain the variable "a" value into this flow.
But when i press the button on the dashboard, I want this flow to show its message on debug node right away WITHOUT clicking on the inject node.
P/S: The reason why im using global variable is because in my main flow, both the msg.topic and msg.payload is occupied with the constantly generated value from OPCUA client.
And i want it such that when i press the button, I want these data to be saved into MySQL database. Therefore, im doing some testing here to make sure that i can pass on the global variable instead of letting my msg.topic or msg.payload overwrite by the value sent from the "ui-button" when its pressed.