I'm trying to persist a date object, the GlobalVars script shows that is has persisted, but it doesn't survive a restart. Could you point to what I'm doing wrong.
var obj = DOpus.create;
try {
var prev_eta = DOpus.vars.get("ETA");
} catch(err) {
var prev_eta = obj.Date('9999-12-31 23:59:59');
DOpus.vars.set("ETA", prev_eta);
DOpus.vars("ETA").persist = true;
}
Also, I thought to convert it toString() but that method also doesn't work.