I'm still super retarted, but okay thanks cool, maybe something like:
for(var row=0;row<128;row++){
mx.data.create({
entity: "MyFirstModule.qwer",
callback: function(obj) {
obj.set("qwer", makeid());
obj.set("asdf", makeid());
obj.set("zxcv", makeid());
mx.data.commit({
mxobj : obj,
callback : function() {
console.log("Object committed");
},
error : function(e) {
console.log("Error occurred attempting to commit: " + e);
}
});
},
error: function(e) {
console.log("an error occured: " + e);
}
});
}
... I think? How do you ensure serial execution of the above snippets should they occur one after the other?
Thankyou