View Full Version : JSON to Grid with root and Form with summary

ILya Cyclone
8 Mar 2010, 8:49 AM
Hi Ext,
I'm a bit new to ExtJS. I have a question about custom JSON structure.

A Java servlet returns a JSON object like:
{"myField":"myValue,"records":[{"sign":"a1","presence":"b1"}, ... {"sign":"an","presence":"bn"}]}

On button click I need to put "records" into a Grid (which is not a problem - doing it with JsonStore) and "myField" into a Form (which IS a problem).
So how do I load custom fields from JsonStore into a Form?


8 Mar 2010, 8:51 AM

ILya Cyclone
8 Mar 2010, 9:02 AM
I need to configure JsonStore with JsonReader or smth?

8 Mar 2010, 11:02 AM
It has one!

This is why I strongly deprecate these "shortcut" classes like JsonStore.

I prefer to configure a Store longhand with a JsonReader, and (if it's loaded remotely) a Proxy.