Page 1 of 1

Kinvey querying options

Posted: Tue Jun 26, 2012 8:11 pm
by adi

Hi,
I'm using Kinvey REST service.
my questions is simple but i can't find the relevant data to support how to do it,
how do i query kinvey to show only part of the data?
thanks
Adi


Kinvey querying options

Posted: Tue Jun 26, 2012 8:12 pm
by maxkatz

Are you looking for this: http://docs.kinvey.com/rest-filtering...?


Kinvey querying options

Posted: Tue Jun 26, 2012 8:16 pm
by adi

Yes, i saw this but how to implement this query syntax inside tiggzi?
when i edit the kinvey REST service i can't find a place to put this query syntax


Kinvey querying options

Posted: Tue Jun 26, 2012 8:29 pm
by maxkatz

Specify 'query' as a request parameter, then map it similar to this: http://help.tiggzi.com/documentation/...


Kinvey querying options

Posted: Wed Jun 27, 2012 5:46 am
by adi

Max, that hit the spot :) thanks
one more related question please, i have a list control in my screen which gets populated with data on Load event.
everything is ok, i see the all the data that i need, now i would like to filter the list to show part of the data, can you please point me to an example of filtering a given list data?
is it done by requiering the REST service or done by another way?

Thanks
Adi


Kinvey querying options

Posted: Wed Jun 27, 2012 1:17 pm
by maxkatz

Yes, just do a request that returns only the data that you want.


Kinvey querying options

Posted: Wed Jun 27, 2012 6:39 pm
by adi

Max, need your help out here.
what i tried to do is go to the request parameters and add a new parameter.
if my return values looks like this:
[
{
"acl": {
"creator": "kid1898"
},
"id": "1",
"kmd": {
"lmt": "2012-06-26T12:54:51.782Z"
},
"price": "",
},
{
"acl": {
"creator": "kid1898"
},
"id": "4",
"kmd": {
"lmt": "2012-06-26T12:54:51.798Z"
},
"price": "",
}
]

i would like to filter the results and get only the one with "id" = "1",
but when i try to add new request parameter named "id" with value 1 it does not work, when i test it all the list comes back and not just the record where _id = 1

what am i doing wrong? where should i place this where clause?

thanks
Adi


Kinvey querying options

Posted: Wed Jun 27, 2012 7:11 pm
by maxkatz

If you know the id, you should be able to get the object like this: /appdata/:appKey/:collectionName/:id