View Full Version : Form and Grid JSON format

22 Apr 2010, 6:31 AM
Hi Guys

I have a requirement to show Data on the Form and Grid on Page load. My backend model Queries the database and sends me the List as well as form data in a single connection. what should be the JSON format in my servlet so that ext-js can understand that this data belongs to the form and this data belongs to grid.

please help me out or should we have different servlets for populating form and Grid.

Example need my webpage to look like this


Name : Krish
Location : Marysville
State : OH
Manager : kristin


Name Department Address City ..
Balaji IT watkins marysvile,OH

Please send me the JSON format


23 Apr 2010, 6:44 AM
You are the only one who can control what is produced. XML, JSON, Array. I personally use the Array style.

Either way, your store has to recognize what is being sent, so you will have to configure the store to receive those records.

With what you already outlined, I think you have the necessary means to produce the output.

But if you are not sure, below may give you some hints.


[{"Name":"Krish","Location":"Marysville",...},{"Name":"Blah Blah Blah","Location":"Blah Blah Blah",...},...]


[["Krish","Marysville",...],["Blah Blah Blah","Blah Blah Blah",...],...]