23
Views
1
Comments
Solved
Update Screen Variable using Javascript - Reactive

I am creating a reactive application. On the interface tab, there is a scripts folder, and I have a script in there. Is there any way to update a screen variable from that script?

Solution

Hi Eric,

You can't. The scripts in that folder do not run in the context of your screen and can't update the variables in there. Should you however still want to do this you will need to add the javascript via the JavaScript Widget (probably in the OnReady event) and use output parameters to update your screen variables. 

Greetings,

Vincent