Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    45
    Vote Rating
    0
    wakatanka is on a distinguished road

      0  

    Default Answered: fill Form from store

    Answered: fill Form from store


    Hi, my goal is to fill my form field from a store loading in an MVC application, here is my code from
    my controller:

    PHP Code:
    var myStore Ext.getStore('myStore');
    myStore.getProxy().setExtraParams({id_item'11'});        
    myStore.load({            
        
    callback: function(recordsoperationsuccess) {                
        if (
    success == true) {                                 
        var 
    myModel Ext.create('app.model.Item', {});
        
    myModel.setData(records); // this is the problem
        
    var selmodview this.getSelmodview();                    
        
    Ext.Viewport.animateActiveItem(selmodview, {type'slide'direction'left'});                    
        var 
    mainform this.getMainform(); // this is the form to fill with records
        
    mainform.setRecord(myModel);                                    
      } else {                   
        
    console.log(operation.error.statusText);               
      }           
    },           
    scopethis
    }); 
    the store loading is ok, app.model.Item is defined and gives no error, but the form still remain empty.

  2. Hi wakatanka,

    Try getAt(0) method of store class to get the model instances instead of creating model instance.

    http://docs.sencha.com/touch/2-1/#!/...e-method-getAt

  3. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default use "getAt(0)" method of store class

    use "getAt(0)" method of store class


    Hi wakatanka,

    Try getAt(0) method of store class to get the model instances instead of creating model instance.

    http://docs.sencha.com/touch/2-1/#!/...e-method-getAt
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  4. #3
    Sencha User
    Join Date
    Jun 2010
    Posts
    45
    Vote Rating
    0
    wakatanka is on a distinguished road

      0  

    Default Thanks

    Thanks


    Thank you so much, you make my day.

Thread Participants: 1

Tags for this Thread