dshupe@comcast.net
17 Oct 2011, 8:25 AM
How does
Ext.onReady(function(){
Ext.tip.QuickTipManager.init();
var store = Ext.create('Ext.data.Store', {
model: 'Writer.Person',
autoLoad: true,
autoSync: true,
proxy: {
type: 'ajax',
api: {
read: 'app.php/users/view',
create: 'app.php/users/create',
update: 'app.php/users/update',
destroy: 'app.php/users/destroy'
}, ... work? Does the sync function just do a compare between the gui instance of the data and the store in memory, and then based on differences it finds, decide what operation to perform? I'm trying to get a 'destroy' to work, and it tries to use either create or update....
I'm using [CODE]objStorekv.remove(objStorekv.getAt(value));[CODE] in my delete function, and operation.action always = 'update'. What gives?
many thanks in advance!
DS
Ext.onReady(function(){
Ext.tip.QuickTipManager.init();
var store = Ext.create('Ext.data.Store', {
model: 'Writer.Person',
autoLoad: true,
autoSync: true,
proxy: {
type: 'ajax',
api: {
read: 'app.php/users/view',
create: 'app.php/users/create',
update: 'app.php/users/update',
destroy: 'app.php/users/destroy'
}, ... work? Does the sync function just do a compare between the gui instance of the data and the store in memory, and then based on differences it finds, decide what operation to perform? I'm trying to get a 'destroy' to work, and it tries to use either create or update....
I'm using [CODE]objStorekv.remove(objStorekv.getAt(value));[CODE] in my delete function, and operation.action always = 'update'. What gives?
many thanks in advance!
DS