Hi, I want to use JavaScript component to define a global variable in protocol.
We can define global variable in PilotScript using syntax: @variable := "blabla";
I want to know how do I do the same thing using JavaScript? Or change the value of global variable in JavaScript?
Does anyone know the syntax of doing so?
Note: I am trying to get the selected value from a list box, which is bind to JavaScript function by onClick. I want to pass the selected value to another protocol, so I am thinking about assign it to a global variable in JavaScript. And then pass this global variable to another protocol
Thanks for any help and suggestion~!
We can define global variable in PilotScript using syntax: @variable := "blabla";
I want to know how do I do the same thing using JavaScript? Or change the value of global variable in JavaScript?
Does anyone know the syntax of doing so?
Note: I am trying to get the selected value from a list box, which is bind to JavaScript function by onClick. I want to pass the selected value to another protocol, so I am thinking about assign it to a global variable in JavaScript. And then pass this global variable to another protocol
Thanks for any help and suggestion~!