@terrypacker
Hi Terry, Thanks for the reply.
I tried this in both a global script and event handler script. In both cases, model is undefined. See below. Sorry for the quality, fonts are looking janky.
FYI. Running version 4.2.1
Latest posts made by marganellim
-
RE: Which Point Called Event Handler?
-
Which Point Called Event Handler?
Hello,
Sorry if this is a simple question but I cant seem to find the answer.
I have 70 points that all have event detectors connected to a single event handler that sends emails.
In addition to this email, I have a script that runs.
Within that script, is it possible to get the point XID or event detector XID that originally fired off the event handler?Thanks
-
RE: Writting to JSON store from a Global Script
Hello
I am getting an error with this script"com.serotonin.m2m2.rt.script.ScriptError: TypeError: dao.save is not a function at line: 49"
dao is defined above as
var dao = com.serotonin.m2m2.db.dao.JsonDataDao.instance;
-
RE: Writting to JSON store from a Global Script
Sorry, I did dig up this post but was confused by the data access object and serotonin stuff. I assumed this was some sort of special case.
I will experiment with this more and in future be a bit more thorough in my searching.
Thanks -
Writting to JSON store from a Global Script
Hi everyone. New to Mango so bare with me.
I'm trying to figure out how to write data to the JSON store from a global script.
The intent is to pass some variables to a global script, have it massage that data and write some JSON to the JSON store.If someone could point me toward a document describing how to access the JSON store from a script. Thanks so much