marxan
26 Jun 2012, 4:55 AM
Hello,
I'm trying to use filter method to select only data I need on the store.
I works with one data but as I use multipleselect my combo can have several values but I have no idea how I can use the filter with multiple value.
Does a property exists to do that?
Here is my code:
var store = Ext.getStore('MetrSeriesStore');
if (countries == '')
{
store.clearFilter();
}
else {
var countr = countries.toString();
var valueArray = countr.split(",");
for(var i=0; i<valueArray.length; i++){
store.filter("LABEISO",valueArray[i]);
}
}
Thanks in advance
I'm trying to use filter method to select only data I need on the store.
I works with one data but as I use multipleselect my combo can have several values but I have no idea how I can use the filter with multiple value.
Does a property exists to do that?
Here is my code:
var store = Ext.getStore('MetrSeriesStore');
if (countries == '')
{
store.clearFilter();
}
else {
var countr = countries.toString();
var valueArray = countr.split(",");
for(var i=0; i<valueArray.length; i++){
store.filter("LABEISO",valueArray[i]);
}
}
Thanks in advance