Results 1 to 3 of 3

Thread: reload datastore with changed parameters

  1. #1

    Default reload datastore with changed parameters

    Hello Forum, i need your help.
    Ive got a gridstore[a], which i want to reload. Reloading whitout new parameters works fine. but if i want to set some parameters new, only the first parameters were loaded. I hope someone can help me.

    [a]

    gebaeudeStore = new GeoExt.data.FeatureStore({ //GeoExt.data uses the Ext.data.Store
    layer: gebaeude,
    autoDestroy:true,
    proxy: new GeoExt.data.ProtocolProxy({
    protocol: new OpenLayers.Protocol.WFS({
    url: "http://localhost/geoserver/wfs",
    featureType: "rfhgebaeude",
    featureNS: "http://www.rostock.de/",
    srsName: "EPSG:4326",
    version: "1.1.0",
    extractAttributes: true,
    filter: new OpenLayers.Filter.Logical({
    type:OpenLayers.Filter.Logical.AND,
    filters:[]
    })
    })
    }),
    fields: [
    {name: 'gebaeudeid', type: 'string'},
    ],
    autoLoad: true
    });
    whith gebaeudeStore.reload() i am reloading the store without new parameters. but now i want to set a new filterparameters. i have no ideas for realiszing that problem.

    thanks a lot
    tim
    Last edited by ballibum; 30 Aug 2009 at 5:14 AM. Reason: somethink miss

  2. #2

    Default

    try this way

    ds.load({params:{start: 0,limit: 20}}); // Load datastore with paging parameters

  3. #3

    Default

    mh it does not work i have set gebaeudeStore.reload({params:{filters:[filtergeb]}}); i think ext change it as an get-method, but it is a post-method

Posting Permissions

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