PDA

View Full Version : Renderer Get Data from Record



Sadd
28 Jun 2012, 6:43 AM
[{"Id":"123123",
"Name":"DataName",
"FullAddres":{"Line1":"Row 1","Line2":"Row 2","Line3":"Row 3","City":"City Data","PostalCode":"3315","Country":"US"},
{"Id":"123123",
"Name":"DataName",
"FullAddres":{"Line1":"Row 1","Line2":"Row 2","Line3":"Row 3","City":"City Data","PostalCode":"3315","Country":"US"}]

I need to get data from FullAddres and i cant find out how to do it, any help?

- Sadd

skirtle
28 Jun 2012, 4:29 PM
Please use [CODE] tags when posting code.

What do you mean by 'renderer'?

Your JSON isn't valid, there are more opening braces than closing braces.

stimpy
29 Jun 2012, 4:43 AM
@Sadd

It looksl ike you have nested JSON.

I suggest you read this it should help explain how to get the information you want.

http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.reader.Json

sword-it
29 Jun 2012, 5:54 AM
Hi!

Correct your JSON as following:-

JSON DATA:-




[
{
"Id": "123123",
"Name": "DataName",
"FullAddres": {
"Line1": "Row 1",
"Line2": "Row 2",
"Line3": "Row 3",
"City": "City Data",
"PostalCode": "3315",
"Country": "US"
}
},
{
"Id": "123123",
"Name": "DataName",
"FullAddres": {
"Line1": "Row 1",
"Line2": "Row 2",
"Line3": "Row 3",
"City": "City Data",
"PostalCode": "3315",
"Country": "US"
}
}
]