私はapp.jsファイルにいます。ユーザーがシステムに正常にログインしたときに実行される関数があります。
loginSuccess: function() {
this.getViewport().getLayout().setActiveItem(1).store.load(); // Calls the Store of the i need to navigate
this.getViewport().getLayout().setActiveItem(1); // The view i will be navigating
}
を示すエラーが発生しthis.getViewport().getLayout().setActiveItem(1).store is undefined
ます。私はストアを間違った方法で呼んでいると思います。どうすればこれを修正できますか?app.jsからストアを呼び出すにはどうすればよいですか?
アップデート
var st = Ext.getStore('myStore');
st.load();
st.on('load', function() {
this.getViewport().getLayout().setActiveItem(1);
});