derbyjs - Server side query rerun for paging, sort or filtering -


what best approach rerun server query/subscription specific connected client when data on client changes?

this useful server side filtering, ordering or paging.

for example, client has table thousands of lines paginated, when user changes filtering text or page number server recompute query subscription filter, , update client on fly.

the search input doesn't have synced across connected users of server, , not needed present in database.

is there way perform traditional model methods on both client , server or have implement rpc approach mentioned in faq?

thanks!

var filter = model.root.filter('items', 'temp.pagenumber', function(item, x,y,pagenumber){    if (item.index > pagenumber*10 && item.index < pagenumber*10+10){       return true;    }    return false; } model.root.subscribe(filter,function(){    model.ref('filtereditems', filter); }); 

and bind filtereditems in view. this.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -