Results 1 to 4 of 4

Thread: [3.2.1] DirectStore and Designer - directFn.directCfg undefined

  1. #1
    Sencha User
    Join Date
    Apr 2007
    Posts
    172

    Default [3.2.1] DirectStore and Designer - directFn.directCfg undefined

    Hi,

    I've got a problem and I don't now how to solve this. Using Ext Designer I created a store:
    PHP Code:
    StoreLang Ext.extend(Ext.data.DirectStore, {
        
    constructor: function(cfg) {
            
    cfg cfg || {};
            
    StoreLang.superclass.constructor.call(thisExt.apply({
                
    storeId'StoreLang',
                
    autoLoadtrue,
                
    directFn'Languages.list',
                
    paramsAsHashfalse,
                
    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!

    Maurice.

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,239

    Default

    The directFn shouldn't be a string, it should be a function reference.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Ext JS Premium Member
    Join Date
    Aug 2008
    Location
    UK
    Posts
    9

    Default

    Is it just me or does the designer always put it in a string?

  4. #4
    Sencha User jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747

    Default

    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.

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •