Unanswered: DataView losing connection with Store ?
I am very new to Sencha Touch and have a weird problem which I have struggled all day to solve but I cannot get anywhere.
My Application opens with a Search form where the user keys in some search criteria and on hitting a search button the results are retrieved from the server and then popped onto the navigator and displayed using a DataView on a Panel. Below this DataView I have a SearchField which allows the user to further filter the results (which I activate on the keyup event).
This all works PERFECTLY.
Where it starts to go wrong is if the user hits Back and returns to the Search form and performs another search. In this case the search results are presented correctly again but the SearchField filtering will NOT work. The actual keyup event is activating ok and it is even filtering the store correctly - I have outputed the results to the console. So its all functioning exactly as I would expext it to EXCEPT the screen does not reflect the newly filtered store (and yet it works perfectly the first time). Its as if the second time through, the view has lost its connection to the store - is that possible (or likely) ?
Does anyone have ANY idea what might be happening here?
(all using Sencha Touch 2 and Architect)
Thanks, if anyone can suggest anything...
Can you give some code?
It?seems you create a new store instance but your dataview still uses old one.
When the dataview is created, do you clear the filters from the last search?
Hi. Yes, I do clear the filters.
Tags for this Thread