I am trying to filter an upshot RemoteDataSource. With the setFilter function I can pass in an array of filters, but at the moment there is no way of specifying whether I want to apply (filter1 AND filter2), or (filter1 OR filter2). Looking into the upshot.js code, it is clearly visible why:
$.each(query.filters, function (index, filter) {
if (filterParameter) {
filterParameter += " and ";
}
filterParameter += applyOperator(filter.property, filter.operator, filter.value);
});
As you can see, the "and" is hardcoded into upshot. Is there any other way of supporting "or" between filters, or will I have to manually modify things? And if have to modify, what is the best approach to take so that my modifications don't get discarded when I update to a newer version of upshot?
This is the same question as the one on the ASP.NET forums.