lorezyra
13 Dec 2011, 4:12 PM
I'm migrating my ExtJS 3 app to ExtJS 4 (and refactoring with MVC pattern). This is a "2-page" application that has a login and the main app. I've completed the login "app" and it works great. However, my trouble starts in the implementation of my multi-controller based app. I'm designing this app to use a separate controller per feature (as opposed to one per view).
Previously in ExtJS3, to reject changes made to a store since the last commit/load, you would call upon the store's rejectChanges() method. Looking through the API, it seems this function no longer exists (in Ext.data.Store). Instead, it's now apart of Ext.data.Model as the method reject().
UserViewPanelGrpForgetOnClick: function () {
Ext.StoreMgr.lookup("blogGroup").reject();
},
I modified a record in my store and attempted to revert the changes. However, FireBug spits out the following error (for the above code):
TypeError: Ext.StoreMgr.lookup("blogGroup").reject is not a function
Could anyone suggest the best way to reject changes to a store/grid?
Previously in ExtJS3, to reject changes made to a store since the last commit/load, you would call upon the store's rejectChanges() method. Looking through the API, it seems this function no longer exists (in Ext.data.Store). Instead, it's now apart of Ext.data.Model as the method reject().
UserViewPanelGrpForgetOnClick: function () {
Ext.StoreMgr.lookup("blogGroup").reject();
},
I modified a record in my store and attempted to revert the changes. However, FireBug spits out the following error (for the above code):
TypeError: Ext.StoreMgr.lookup("blogGroup").reject is not a function
Could anyone suggest the best way to reject changes to a store/grid?