I\'m trying to filter my list of auditions by show ID but when the show ID is \'1\' all auditions that have a show Id of \'1x\' are being returned. Below is my code.
Also have you tried
app.stores.auditions.filter({
property: 'show_id',
value: show.id,
exactMatch: true
});
or
app.stores.auditions.filterBy(function(record, id) {
return store.id = id;
}, this);
Or if you just want to get that specific record;
var record = app.stores.auditions.getAt(app.stores.auditions.findExact('store_id', store.id));
I have found that to pass an object to filter it must instantiate a new filter, as per the below:
store.filter(new Ext.util.Filter({property:"foo", value:"bar", exactMatch:true});