adi
Posts: 0
Joined: Tue Jun 26, 2012 8:09 pm

Kinvey querying options

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Kinvey querying options

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

adi
Posts: 0
Joined: Tue Jun 26, 2012 8:09 pm

Kinvey querying options

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Kinvey querying options

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

adi
Posts: 0
Joined: Tue Jun 26, 2012 8:09 pm

Kinvey querying options

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Kinvey querying options

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

adi
Posts: 0
Joined: Tue Jun 26, 2012 8:09 pm

Kinvey querying options

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Kinvey querying options

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

Return to “Issues”