Data source Scripting
-
Hello.
I Can create a Data source Scripting to developed scripts of my signals, now, I would like create logical variable to be use in the dashboard. I created data point in the data source the scripting, but I don't know as I can use this data point in my script.
Can you help me? Thanks
-
When you create a Data Point in a scripting Data Source you give the Data Point a Variable name. This is the name you can refer to in your script like name.value. Just like the other variables for other Data Points like p1.value.
-
Thanks.
I tested your solution, but, I don't see changes in the variables. for example. I use this instruction:
XR.value=false;
In this case my data point have than change to false, but isn´t happen.
-
Hi Fabier,
If your data point is settable, you can do,
XR.set(false);
Be sure to read the Mango JavaScript help dialogue. You can find in in the related items section on point links, scripting data sources, meta data sources and global scripts, or here: https://help.infiniteautomation.com/about-mango-java-script/
The most up to date version is here: https://github.com/infiniteautomation/ma-core-public/blob/main/Core/web/WEB-INF/dox/mangoJavaScript.htm
-
Thank you.
My aplication run good.
-
Glad to hear it!