loadDashList: function() {
var deferred;
deferred = Ext.create("Deft.promise.Deferred");
this.getDashListStore().load( {
scope: this,
callback: function(records, operation, success) {
console.log('flow: what is success? ', success); // displays
if (success) {
console.log('flow: DataVisionService.loadDashList.success'); // displays
return deferred.resolve(records);
} else {
return deferred.reject("Error loading loadDashList");
}
}
});
return deferred.promise;
}
loadDashList: function() {
var deferred;
deferred = Ext.create("Deft.promise.Deferred");
var operation1 = new Ext.data.Operation({
action: 'read',
params: {
start: 0,
limit: 1000,
procNm: 'sel_dshbrd_json2',
srchStrng: 1,
connId: 'AW'
}
});
this.getDashListStore().load(operation1 {
scope: this,
callback: function(records, operation, success) {
console.log('flow: what is success? ', success); // does not display
if (success) {
console.log('flow: DataVisionService.loadDashList.success'); // does not display
return deferred.resolve(records);
} else {
return deferred.reject("Error loading loadDashList");
}
}
});
return deferred.promise;
}
--
Deft JS home page: http://deftjs.org/
Wiki: https://github.com/deftjs/DeftJS/wiki
For rules and tips on asking questions on the Deft JS mailing list: https://github.com/deftjs/DeftJS/wiki/Asking-Questions-on-the-Mailing-List
---
You received this message because you are subscribed to the Google Groups "Deft JS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deftjs+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/deftjs/81716d3a-ac4c-4fab-82f9-eb3be47c51d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.