Results 1 to 2 of 2

Thread: How you post new parameters?

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    130
    Answers
    4

    Default Answered: How you post new parameters?

    This is my code:

    Code:
    Ext.define('gridOptionsModel', {
        extend: 'Ext.data.Model'
    });
    
    var gridOptionsStore = Ext.create('Ext.data.JsonStore', {
        autoDestroy: true,
        model: 'gridOptionsModel',
        proxy: {
            type: 'ajax',
            actionMethods: 'POST',
            url: '/application.php?way=system&case=updateFields41',
            extraParams: {meta: 'true'},
            reader: {
                type: 'json',
                root: 'gridoptions'
            }
        }
    });
    And this is the part where it reloads the data from the url but does not send the desired parameters

    Code:
    gridOptionsStore.load({proxy: {
       extraParams: {gridData: grid.getState()}}
    });
    I have tried everything possible but cannot made it to POST the gridData parameter.

  2. Code:
    gridOptionsStore.load({    
      params: { 
        gridData: 'whatever' 
      } 
    });

  3. #2
    Sencha Premium User Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Pennsylvania
    Posts
    576
    Answers
    67

    Default

    Code:
    gridOptionsStore.load({    
      params: { 
        gridData: 'whatever' 
      } 
    });

Tags for this Thread

Posting Permissions

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