Hallo!
I wrote a function, that you can use for distinct Element filtering.
The purpose is if you get resultsets with joins and have more entries, and you want to show the entries in more than one combobox you will get double entries, if you use the same store.
You may want to filter this "double entries".
Of corse you could make 2 requests to the server, but why bother the server with requests, if the client can do it(you may have performace issues on the server).

If your store looks like this:
Name
Anton
Toni
Toni

you will get this:
Name
Anton
Toni

Here the code:
function getDistinctStore(store,distinctKey){//info: store is a json store
var newstore=new Ext.data.ArrayStore();
var record;
store.data.each(function(rec){
if(record==null){
newstore.add(rec);
record=rec;
}
else
if(record.get(distinctKey)!=rec.get(distinctKey)){
newstore.add(rec);
record=rec;
}
});
return newstore;
}
It would be nice if Ext would have this as standard.
greets umit