mardi 6 mai 2014

Does Sencha Touch have ability to deal with one model to many different typesofmodels

Dear friends,

I run into a situation where I need to load an unusual data structure.


The data structure looks like this:


config

- airport

- location

- aircraftIcon

- etc.


Each of them represents a model. Model config is the main/"upper" model which contains the rest, but between airport, location and aircraftIcon , they are paralleled.


So I went through the loading nested model and hasMany property and found:
"Represents a one-to-many relationship between two models. " You can find this statement in the official document at http://ift.tt/Rni0nQ it's in the very first line.


So that means, the nested loading can only allow 2 models, if there are more than 2, then there is no way to do it in Sencha Touch 2.


I hope someone could say it's wrong with examples.


To understand more about the background of this question, here is the background:

http://ift.tt/Rni1rF





Aucun commentaire:

Enregistrer un commentaire