1. #1
    Sencha User
    Join Date
    Mar 2010
    Location
    FRANCE - Lyon
    Posts
    4
    Vote Rating
    0
    newmind@free.fr is on a distinguished road

      0  

    Exclamation Unanswered: Multiple Ext.data.Store extended class but juste one model?

    Unanswered: Multiple Ext.data.Store extended class but juste one model?


    Hello,
    I create a class that extends ext.data.store. I create two other classes that extend the first. Oddly the two derived classes share thesame model :

    Class 1 (Mother) :

    Code:
    Ext.define('Appli.store.GridFilter',{
        extend:'Ext.data.Store',
        proxy : {
                actionMethods :{
                    read:'post'
                },
                type:'rest',
                reader : {
                    type: 'json',
                    root: 'rows'
                }
             },
    
    
        
         constructor: function(config) {
    
    
            this.callParent([config])
            return this;
         }
        
    });
    Class 2 :
    Code:
    Ext.define('Di.store.logExec.GridFilter',{
        extend:'Appli.store.GridFilter',
        model: 'Di.model.logExec.GridFilter',
        constructor:function(config){
            this.proxy.url = '/di/LogExecFindGrid/read/';
            this.callParent(arguments);
            return this;
        }
        
    });
    Class 3 :

    Code:
    Ext.define('Di.store.tache.GridFilter',{
        extend:'Appli.store.GridFilter',
        model:'Di.model.tache.GridFilter',
        constructor:function(config){
            this.proxy.url ='/di/TacheFindGrid/read/';
            this.callParent(arguments);
             return this;
        }
    });
    If I use the config property, then it works :

    Class 1 (Mother) :

    Code:
    Ext.define('Appli.store.GridFilter',{
        extend:'Ext.data.Store',
        config:{
            proxy:{
                actionMethods :{
                read:'post'
                },
            type:'rest',
            reader: {
                    type: 'json',
                    root: 'rows'
                }
            }
        },
         constructor: function(config) {
             this.initConfig(config);
            this.callParent([config])
             return this;
         }
        
    });
    class 2 :

    Code:
    Ext.define('Di.store.logExec.GridFilter',{
        extend:'Appli.store.GridFilter',
        config:{
            model:'Di.model.logExec.GridFilter',
            proxy:{
                url :'/di/LogExecFindGrid/read/'
            }
        }
    });
    Class 3 :

    Code:
    Ext.define('Di.store.tache.GridFilter',{
        extend:'Appli.store.GridFilter',
        config:{
            model:'Di.model.tache.GridFilter',
            proxy:{
                url :'/di/TacheFindGrid/read/'
            }
        }
        
    
    
    });
    Can you help me?

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,588
    Answers
    540
    Vote Rating
    322
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    What makes you think that they share the same model?

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi