Reputation:
store = Observable(new Memory({data: data}));
chart.addSeries("Load Cell 0", new StoreSeries(store, { query: { load_cell_id:0 }}, "kn"));
How would I go about doing a more advanced query with the Store Series?
For the above i need all 'load_cell_id = 0' and 'date_time < 12345' or other time stamp.
At the moment i can only get load_cell_id:0 to work.
Upvotes: 0
Views: 615
Reputation: 7352
As with dojo/store/Memory
you can use a function as a query (source):
store.query(function(product){
return product.price < 10;
}).forEach(function(shoe){
// called for each match
});
See my answer to Is it possible to filter data in a dgrid like you can in a datagrid? for more complex example. Alternatively, in the case you need bad ass querying, there is Resource Query Language as I mentioned in the answer to How to query a dgrid on multiple columns (example code here).
Upvotes: 1