PDA

View Full Version : getHistory() and Action is not working in Extjs 6 modern



rahul.yadav
21 Jul 2015, 3:44 AM
In my sample application(sencha touch v2.3) i used getHistory() method
var me=this;
this.getApplication().getHistory().add(new Ext.app.Action({
url:url
}), true);
it is available in Ext.app.Application but when i tried to do the same thing in Extjs-6 modern application give error 'getHistory is not a function' as i saw it is not available in Extjs-6 modern so provide me some alternate of it.the same thing with Ext.app.Action also.

joel.watson
22 Jul 2015, 2:07 PM
Hi--

Can you describe what you're trying to accomplish?

Thanks!
Joel

rahul.yadav
24 Jul 2015, 2:44 AM
Hello Joel,
From this method i am trying to apply History on application so that i used getHistroy() and by passing url set the particular page url.
Thanks

joel.watson
24 Jul 2015, 4:24 AM
Hello Joel,
From this method i am trying to apply History on application so that i used getHistroy() and by passing url set the particular page url.
Thanks

You should be able to use routing (http://docs.sencha.com/extjs/6.0/6.0.0-modern/#!/api/Ext.app.BaseController-cfg-routes) and redirectTo (http://docs.sencha.com/extjs/6.0/6.0.0-modern/#!/api/Ext.app.BaseController-method-redirectTo) to manage that.

Thanks!
Joel