2013 in review

As well as the book (See prev post), my next bit of good news dropped into my inbox from WordPress just before New Year. Even though I’ve ignored my blog (something I only really started to keep  as a reference for me really),  I was amazed to read the stats have grown since last year. If they are true then I am shocked :O One of my resolutions is to give my blog some more attention. Thanks to everyone who has visited. I am thinking about how to make it better so please get in touch if you have any suggestions on how I can help people with Sencha Touch or anything else you may be reading on here. Happy New Year!

Here’s an excerpt:

The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 22,000 times in 2013. If it were a concert at Sydney Opera House, it would take about 8 sold-out performances for that many people to see it.

Click here to see the complete report.

A Sencha Touch book I helped review

Last year I was approached by Packt to review a book on Sencha Touch 2. The book, Sencha Touch 2 Mobile Javascript  Framework is by John Earl  Clark and Bryan P. Johnson,  who have also produced the book Creating Mobile apps with Sencha Touch 2  for Packt .  Though the book doesn’t really use Architect, it gives a really solid grounding in the basics of Sencha Touch and covers a lot of ground quite quickly. It differs from their first book in that rather than do an app for each chapter, it gives more detail for the most important aspects of a Sencha Touch App. After reading the book, you should be able to put together a basic application and if you are using Architect it will give you insights into what’s happening in the code. A good read. Steep price in print but cheaper for the ebook;)

Sencha Touch Dynamic Model to accommodate schema changes

Sometimes data changes and your application has to accommodate this. Maybe you have fields that are user defined for example.  I have put together some code that would enable this on Sencha Touch, allowing for the fields in a model to be defined dynamically.

I have used for the first time to show this example. It can be found here.

The fiddle uses the same list and model and store but handles entirely different data. By changing three things (dynamicItemTpl, data[] array for the dynamicStore,  and data array in the fieldsStore) you can either show people or film titles in the list.  This is a very basic example, but you could feed all three into Sencha Touch to create your fields on the fly.

This is a quick post but hopefully the example is self explanatory. As always, any comments or questions are welcome.