I am trying to pass in a JSON object with a complex structure. It
looks something like this:
{
id: 2,
name: "Trevor",
parent: {id: 1, name: "John"}
children:
[
{id: 3, name: "Bill"},
{id: 4, name: "Fred"}
]
}
I'd like to define a RecordDef that mirrors the above. This was my
first attempt and it didn't work.
RecordDef personDef = new RecordDef(new FieldDef[] {
new IntegerFieldDef("id"), new StringFieldDef("name"), new
ObjectFieldDef("parent")
});
How do I use the parent object, now I have it and how do I access the
children?
All the examples only seem to show single table results.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---