View Full Version : [3.2.1] DirectStore and Designer - directFn.directCfg undefined

14 May 2010, 6:34 AM

I've got a problem and I don't now how to solve this. Using Ext Designer I created a store:

StoreLang = Ext.extend(Ext.data.DirectStore, {
constructor: function(cfg) {
cfg = cfg || {};
StoreLang.superclass.constructor.call(this, Ext.apply({
storeId: 'StoreLang',
autoLoad: true,
directFn: 'Languages.list',
paramsAsHash: false,
root: 'data',
fields: [
name: 'shortName',
type: 'string'
name: 'name',
type: 'string'
name: 'desc',
type: 'string'
}, cfg));
new StoreLang();

This store is used in a listView. I use Tommy Maintz Alternative Ext Direct PHP Implementation. The api.php response seems fine (compared it with other postings). It doesn't fire a 'get' request in FireBugs console, but generates the error 'directFn.directCfg is undefined' at line 24070 in ext-all-debug.js.

I've no clue where to look for. Does someone got any ideas?
You're help is appreciated!


16 May 2010, 5:01 PM
The directFn shouldn't be a string, it should be a function reference.

20 May 2010, 5:56 AM
Is it just me or does the designer always put it in a string?

20 May 2010, 7:17 AM
It is not just you :-) Proper Ext.Direct support is going to come in a near future release of the Designer. Removing the quotes from the directFn string will yield a working DirectStore as a temporary workaround.