Threaded View
-
5 Dec 2012 9:23 AM #1
Ext.data.DirectStore doesn't copy in all require config settings
Ext.data.DirectStore doesn't copy in all require config settings
Description: Ext.data.Directstore doesnt copy in some settings
- I have a common Ext.Direct return class which has 'errMsg' as the 'message' property, there is no simple way to set this
Steps to reproduce the problem:
Create a store with a different successProperty or messageProperty
Test Case:
Code:store = Ext.create('Ext.data.DirectStore', { model: modelName, limit: nrows, autoLoad: false, paramOrder: directParamOrder, root: 'item', totalProperty: 'totalCount', messageProperty: 'errorMsg', batchActions:false, directFn: someDirect.function });
HELPFUL INFORMATION
Debugging already done:- yes
Possible fix:- change the copyTo from :
Ext.copyTo(proxy.reader, config, 'totalProperty,root,idProperty');
to include the extra properties..
Ext.copyTo(proxy.reader, config, 'totalProperty,root,idProperty,successProperty,messageProperty');
You found a bug! We've classified it as
EXTJSIV-7919
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote