Results 1 to 3 of 3

Thread: Ext.grid.Panel and JsonpStore caching my extraParams

  1. #1
    Ext JS Premium Member
    Join Date
    Jul 2009
    Posts
    103

    Default Ext.grid.Panel and JsonpStore caching my extraParams

    I have this store for a grid.Panel


    this.store = Ext.create('Ext.data.Store', {
    pageSize: 100,
    model: 'FormHog.model.MyForms',
    autoLoad: true,
    proxy: {

    type: 'jsonp',
    url: '/formhogapi/form/getMyFormsInfo',
    extraParams: { orgId: FormHogAPI.getCache('orgId') },
    reader: {
    root: 'data',
    totalProperty: 'total'
    },
    listeners: {
    exception: exceptionHandler
    }
    },

    });


    I'm dumping the value of FormHog.getCache('orgId'), right before the store loads, and I see the value is changing. However , every request getting sent to the server is using the original orgId that was set when the component was initialized.

    How do I tell the Store to evaluate it's extraParams everytime ?

  2. #2
    Sencha User
    Join Date
    Oct 2010
    Location
    St. Louis, Missouri
    Posts
    55

    Default

    What did you do to get past this?

    I'm running into the same thing with Extjs5

  3. #3
    Ext JS Premium Member
    Join Date
    Jul 2009
    Posts
    103

    Default

    Wow, that was four years ago I have completely forgotten. I'll try to dig it out of an archive for you though.

Posting Permissions

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