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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -