jg4smile
13 Jul 2007, 5:07 PM
Newbie question:
I am attempting to filter a data.store object with URL parameters and from what I am reading, I believe it can be done by using "params". See snippet below:
var ds2 = new Ext.data.Store({
// proxy: new Ext.data.HttpProxy({url: 'testData.aspx?Region=BIR'}),
proxy: new Ext.data.HttpProxy({url: 'testData.aspx'}),
reader: new Ext.data.XmlReader({
record: 'Region',
id: 'StoreID',
totalRecords: '@total'
}, [
{name: 'Region'},
{name: 'StoreID'},
{name: 'StoreName'}
]),
params:{ Region: 'BIR' }
});
ds2.load();
I am wondering if the block of code "params:{ Region: 'BIR' } " is the same as "?Region=BIR"? Ultimately this store will be a filtered list for a combo box. Any help will be appreciated.
I am attempting to filter a data.store object with URL parameters and from what I am reading, I believe it can be done by using "params". See snippet below:
var ds2 = new Ext.data.Store({
// proxy: new Ext.data.HttpProxy({url: 'testData.aspx?Region=BIR'}),
proxy: new Ext.data.HttpProxy({url: 'testData.aspx'}),
reader: new Ext.data.XmlReader({
record: 'Region',
id: 'StoreID',
totalRecords: '@total'
}, [
{name: 'Region'},
{name: 'StoreID'},
{name: 'StoreName'}
]),
params:{ Region: 'BIR' }
});
ds2.load();
I am wondering if the block of code "params:{ Region: 'BIR' } " is the same as "?Region=BIR"? Ultimately this store will be a filtered list for a combo box. Any help will be appreciated.