I have added a screen and also added a REST service which is bound to a Grid. The test of the REST service is successful while testing of the app does not show any results on the screen. How to go about debugging it?
I have added a screen and also added a REST service which is bound to a Grid. The test of the REST service is successful while testing of the app does not show any results on the screen. How to go about debugging it?
http://docs.tiggzi.com/documentation/...
Try with Tiggzi Proxy on.
Proxy is ON and test is successful. I am suspecting a diff issue. Need to have ideas how to handle this.
The response looks like this:
[
{
"links": {
"self": "/name",
}
},
{
"last_activity_at": "2012-08-09 16:18:49",
"summary": "asdfghjhgfdsdfgh bdfghhg",
"author": "hghghh",
"title": "sfasdf asdfas df sdf asd"
},
{
"last_activity_at": "2012-08-09 16:18:49",
"summary": "asdfghjhgfdsdfgh bdfghhg",
"author": "hghghh",
"title": "sfasdf asdfas df sdf asd"
},
{
"last_activity_at": "2012-08-09 16:18:49",
"summary": "asdfghjhgfdsdfgh bdfghhg",
"author": "hghghh",
"title": "sfasdf asdfas df sdf asd"
}
]
As you can see there is one first block that should be ignored while processing, the data array is from second block. How to achieve this?
Validate the JSON at http://jsonlint.com/ -- I'm getting an error.
I had modified the json and changed the actual values. Let me check.
An extra comma was present. Here is the modified one.
[
{
"links": {
"self": "/name"
}
},
{
"last_activity_at": "2012-08-09 16:18:49",
"summary": "asdfghjhgfdsdfgh bdfghhg",
"author": "hghghh",
"title": "sfasdf asdfas df sdf asd"
},
{
"last_activity_at": "2012-08-09 16:18:49",
"summary": "asdfghjhgfdsdfgh bdfghhg",
"author": "hghghh",
"title": "sfasdf asdfas df sdf asd"
},
{
"last_activity_at": "2012-08-09 16:18:49",
"summary": "asdfghjhgfdsdfgh bdfghhg",
"author": "hghghh",
"title": "sfasdf asdfas df sdf asd"
}
]
Good. What's exactly is not working?
I have bound this REST service to a grid, but it is not loading.
Array = Grid
Summary = Label inside grid
So my question here is that, if you see the response, the first element of the array does not follow the same format as others (it does not have 'Summary'). Is that fine and will it be handled correctly or do I need to do something extra to bind it correctly.
Yes, should be fine. If you need, you could handle it and print something like "no data" or similar.
But nothing seems to be happening when I load the screen and the grid is empty. Any possibility to enable some debug log?