Save
Saving
  • M marganellim

    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;
    

    posted in How-To read more
  • M marganellim

    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

    posted in How-To read more
  • M marganellim

    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

    posted in How-To read more