Help
Commit
Persists any data set with SetValue to BrainHoney's persistent store. Commit is asynchronous and returns before the data has finished saving. You can specify a commitHandler callback function to be notified when the commit completes.
Syntax
Commit(String/Object options) : Boolean
Parameters
Returns
True on success; false otherwise. Call GetLastError to get error specifics.
Example
This example sets the value of the object named "a1.1" and commits it to the persistent store.
var api = findApiHost(window);
api.Initialize("");
var result = api.SetValue("a1.1", "the brown fox");
api.Commit("");
See Also
commitHandler Terminate