PDA

View Full Version : Problem with stores in a detail page (offline app)



PHANTOMIAS
28 Oct 2011, 4:09 AM
Hello!

I use Sencha Touch v.1.1.1 and I have a MVC app like described in this tutorial:
http://www.sencha.com/learn/a-sencha-touch-mvc-application-with-phonegap/

I have data stores and everything is okay on a list view. I load the list view data and because the store is bound to the list, I see the list entries. But now I have the problem, that I want to click on a list entry, make an AJAX call to get the needed details (which I do not have in the list view). How can I create a store for this? I ask this, because I want to make the app ready for offline usage.

I read this tutorial http://www.sencha.com/learn/taking-sencha-touch-apps-offline/ which works great with my list. But I do not know how can I put the list entry details in a (different?) store and bind them to a detail view, because I only need one entry and not the whole entries of the store.

I hope anyone has an idea how to solve this?

Thank you in advance & Best Regards Tim

PHANTOMIAS
31 Oct 2011, 1:19 AM
Anyone an idea?