Threaded View

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    80
    Answers
    2
    Vote Rating
    0
    mohaskuar is on a distinguished road

      0  

    Default Answered: pass variable

    Answered: pass variable


    i hav a controller and my problem is how can i pass variables to my php file so that i can do a new query and fill my store as json out put....

  2. Use proxy extraParams:
    Code:
    searchUser: function(grid, record) {//the grid  desplayed from userlist view
      var SearchGrids = this.getSearchGridsStore(), // or SearchGrids = grid.getStore(),
           searchId=record.get('id');
      
       SearchGrids.proxy.extraParams.searchId = searchId;
       SearchGrids.load(
           callback: function () {
                 // store loaded
           }
       });   
    
       if (this.searchGridWin) {
           // close opened window
           this.searchGridWin.close();
           //this.searchGridWin.destroy(); // if window closeAction != 'destroy' uncomment
           this.searchGridWin = null;
       } else {
           this.searchGridWin = Ext.widget('SearchGrid');
           this.searchGridWin.show();
       }
    },

Thread Participants: 2

Tags for this Thread