PDA

View Full Version : [CLOSED][3.0rc1] Ext.data.DirectProxy incomplete ?



bas_denis
18 Apr 2009, 1:13 AM
the Ext.data.DirectProxy seems pretty incomplete.

properties directFn, paramsAsHash, paramOrder are not in use
this makes the Ext.data.DirectStore useless

Parent of: [3.0 RC1] Ext.data.DirectProxy directFn (http://extjs.com/forum/showthread.php?t=65783)

maybe a short example if fixed? [3.0 RC1] DirectStore (http://extjs.com/forum/showthread.php?t=65824)

or am i wrong?

kind regards

christocracy
21 Apr 2009, 10:19 PM
While implementing Ext.data.DataWriter, it became necessary to allow definition of a full api for DirectProxy (all proxies actually), not just directFn.



var dproxy = new Ext.data.DirectProxy({
api: {
load: Users.load,
create: Users.create,
save: Users.update,
destroy: Users.destoy
}
});


I could add the config-param directFn back for when not using full CRUD api.

eg:


var dproxy = new Ext.data.DirectProxy({
directFn: Users.load
});


I haven't quite figured out how to deal with the config-params paramsAsHash and paramOrder with the new api-configuration.