Closed heinzchr closed 9 years ago
Can you show an example. Don't understand what is it for?
You can easily load missing data over the service without loading everything redundant...
//fill startProducts if there are not enough highlighted in the database if(self.startProducts().length < 6 && !self.isLoading()) { self.isLoading(true); var numberToAdd=6-self.startProducts().length; o("Product").take(numberToAdd).filterByList("id",self.startProducts()).get(function(data) { for(var i=0;i<data.length;++i){ self.startProducts.push(data[i]); } self.isLoading(false); }); }
Hier kann man gut erkennen was der neue Filter kann.
Beim ersten mal holt der sich die Highlights. Die reichen nicht und deshalb muss er nochmal los. Statt jetzt auf der Clientseite prüfen zu müssen, ob ich die Entität schon in meinem abservableArray hab, hole ich mir direkt nur die Infos nach, die ich auch brauche…
Viele Grüße Christoph Heinzel
Phone: +49 (0) 176 643 11 393 Mail: info@christoph-heinzel.com Home: christoph-heinzel.com
Von: Jan Hommes Gesendet: Samstag, 24. Januar 2015 17:21 An: janhommes/o.js Cc: heinzchr
Can you show an example. Don't understand what is it for?
— Reply to this email directly or view it on GitHub.
A filter for increasing the performance of your client. With this one you can only download from service, what you really need... I use it in the shop...