BrianJones
Posts: 0
Joined: Fri Dec 14, 2012 11:00 pm

Service not using returned data to update grid. (Modified Sample Twitter App)

I know this has to be something simple, but I haven't been able to find an example to help out. I've added my own service to the sample twitter app and mapped the results array to the grid on the page just like the twitter service. When testing the app I can debug in the success event and see that an array of 7 objects were successfully returned, but they don't populate the grid. What am I doing wrong?! Image

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

Service not using returned data to update grid. (Modified Sample Twitter App)

It works when you do service test? Most likely a cross-domain issue, try with Tiggzi Proxy enabled.

http://docs.tiggzi.com/documentation/...

BrianJones
Posts: 0
Joined: Fri Dec 14, 2012 11:00 pm

Service not using returned data to update grid. (Modified Sample Twitter App)

Yes, the service test is working. I get the same response with or without the proxy enabled. Here's what I have when the onSuccess is fired... (this is with proxy enabled) array of seven objects from my test service.

Any other suggestions?
Image

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

Service not using returned data to update grid. (Modified Sample Twitter App)

Can you look in the Network tab to see what response code you get?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Service not using returned data to update grid. (Modified Sample Twitter App)

From your mapping it seems that you refer to "myAgentList", but there is no such value in data from your service. Your service returns an array. Please rename parameter "myAgentList" to "$"

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

Service not using returned data to update grid. (Modified Sample Twitter App)

One more thing.. can you share the service URL with us and tell us how to invoke it?

BrianJones
Posts: 0
Joined: Fri Dec 14, 2012 11:00 pm

Service not using returned data to update grid. (Modified Sample Twitter App)

That was it. I assumed that name was just an identifier, rather than the name of the array itself in the response. Setting it back to $ solved the problem. Thanks so much for your help.

Return to “Issues”