Before we move on to data stores, we need to take a brief look at data formats. The three currently supported by Sencha Touch are Array, XML, and JSON. For each example, we will take a look at how the data would appear for a simple contact
model with three fields: an ID, a name, and an e-mail ID.
An ArrayStore
data format uses a standard JavaScript array, which would look something like this for our contact
example:
[ [1, 'David', 'david@gmail.com'], [2, 'Nancy', 'nancy@skynet.com'], [3, 'Henry', 'henry8@yahoo.com'] ]
One of the first things we notice about this type of array is that there are no field names included as part of a JavaScript array. This means if we want to refer to the fields by the name in our template, ...
No credit card required