PDA

View Full Version : data store to contain record of parent with children



actonwang
9 Mar 2011, 8:55 AM
hi,

does the datastore support mutiple types of records. for example, I want to have some records each containing a colletion of child records.

Thanks!
Acton

mitchellsimoens
10 Mar 2011, 5:39 AM
In ExtJS 3.x all you can do is have a field contain an array. Type on that field should be auto which is default.

actonwang
10 Mar 2011, 7:22 AM
i know this. but the real problem being i want store to manage two type of records and manage some trasition of persistence. I guess it doesn't support it anyhow. the store right now is just a simple collection of records.

mitchellsimoens
10 Mar 2011, 7:23 AM
the store right now is just a simple collection of records.

Pretty much. With ExtJS 4 and ST, you have associations but for ExtJS 3 that is pretty much all it is.