Page 1 of 2
Executing Parse.com filter queries using Tiggzi Request Mapping
Posted: Tue Apr 17, 2012 3:29 pm
by anilsojitra
I have a Parse.com class setup with data as in the attached screen shot.
In my Tiggzi project (http://tiggzi.com/preview/b206b274-c7...) i have managed to setup a REST service as a 'get' method to retrieve all the records.
I want to be able to retrieve records by filtering on the 'type' column e.g. where type='a'.
I have tried setting the REST service to be a 'post' method and adding the 'type' as a Request Parameter with it's default value set to 'a' but that still returns all the records.
Please can you tell me how I may do this in the Tiggzi builder?
Executing Parse.com filter queries using Tiggzi Request Mapping
Posted: Tue Apr 17, 2012 3:40 pm
by maxkatz
Executing Parse.com filter queries using Tiggzi Request Mapping
Posted: Tue Apr 17, 2012 4:17 pm
by anilsojitra
Hi Max,
I tried adding a Request Parameter as in the screen shot but that didn't return the filtered items. Is that the way you recommended?
Executing Parse.com filter queries using Tiggzi Request Mapping
Posted: Tue Apr 17, 2012 5:19 pm
by maxkatz
It works for me:
Executing Parse.com filter queries using Tiggzi Request Mapping
Posted: Tue Apr 17, 2012 5:25 pm
by anilsojitra
Yes but in my parse class I haven't got a column called text. I want to filter by column called type with a value of 'a'. the test also runs successfully for me but returns all the records not the filtered records.
Executing Parse.com filter queries using Tiggzi Request Mapping
Posted: Tue Apr 17, 2012 5:41 pm
by anilsojitra
Is it possible to assign the results of a rest request to something other than a list control like a label control? I want to use parse as a cms but do not want to represent the results as a clickable list.
Executing Parse.com filter queries using Tiggzi Request Mapping
Posted: Tue Apr 17, 2012 5:42 pm
by maxkatz
I created a new table with 'type' field, it also works:
Executing Parse.com filter queries using Tiggzi Request Mapping
Posted: Tue Apr 17, 2012 5:43 pm
by maxkatz
You can assign to any component. You need to use grid/list if you want to iterate over the result.
Executing Parse.com filter queries using Tiggzi Request Mapping
Posted: Tue Apr 17, 2012 9:10 pm
by anilsojitra
I want to iterate over the result set so understand that I need to use a list but can a list be styled so that it doesn't look like a navigation list of buttons but more like a label. I need the appearance to look like text only.
Executing Parse.com filter queries using Tiggzi Request Mapping
Posted: Tue Apr 17, 2012 9:11 pm
by anilsojitra
Okay thanks max. I will try again.