Breeze query with multiple conditions -
Breeze query with multiple conditions -
how write breeze query 2 'where' conditions?
the next doesn't work:
var query = breeze.entityquery.from("boilers") .where('boilermakeid', '==', $rootscope.boilermakeid) .and('actueel', '==', true);
use predicates...
http://www.breezejs.com/sites/all/apidocs/classes/predicate.html
var pred1 = predicate.create("boilermakeid", "==", $rootscope.boilermakeid); var pred2 = predicate.create("actueel", "==", true); var newpred = pred1.and(pred2); var query = breeze.entityquery.from("boilers").where(newpred)
breeze
Comments
Post a Comment