| Page 1 of 1 | [ 3 posts ] |
|
Hi All,
I'm a bit new to YUI. I am trying to bind a .NET WCF JSON web service to the YUI datatable but no luck. I can get an XML service to bind with no problem. The following is what the service returns. Code: { "Rows" :[{"EmpId":"0","Name":"A","Designation":"Manager","Department":"Mech","Country":"India"},{"EmpId":"1","Name":"B","Designation":"Team Leader","Department":"Mech","Country":"India"}]} This JSON seems to parse fine in jsonlint, also if I make a YAHOO.util.Connect.asyncRequest I can parse the above json into an js array by calling YAHOO.lang.JSON.parse() on the success function's parameter.responseText. Parse gives me the following array. Code: - var test - Rows - [0] Country "India" Department "Mech" Designation "Manager" EmpId "0" Name "A" - [1] Country "India" Department "Mech" Designation "Team Leader" EmpId "1" Name "B" Now when I try to use a Datasource and fill a Datatable I'm getting a "Data Error" message each time. I know that it is hitting the service and returning properly because the service running in debug mode and it hits a breakpoint whenever I load this page. I've included the entire page below. Thanks in advance for any advice you can provide. http://gist.github.com/227051 Thanks, Andy |
|
For JSON, it is not responseSchema.resultNode but resultsList
|
|
Thanks so much!
|
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group