javascript - Quickblox: How to use pagination in fetching custom objects using Web SDK -


i making quick web report team view selected application data using quickblox web sdk.

i able fetch users data , some custom objects data 100 objects. question is, how fetch more 100 custom objects e.g. use pagination?

with users query, using following (this works fine):

var params = {}; {params.perpage = 100;} {params.pageno = page;} qb.users.listusers(params, function(err,result) { ... } 

but, how same when fetching custom objects using quickblox web sdk (javascript) library?

any tips or recommendations appreciated! :)

okay.. posting question gets brains working better.

so, answering own question in case else has brain bump.. :)

simple way create pagination custom object fetch use filters , skip parameter stated in: http://quickblox.com/developers/custom_objects#parameters

full query this: var filter = {skip: skipcount}; qb.data.list("custom_class_name", filter, function(err, result) { ... }


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -