-
15 Nov 2012 2:52 AM #1
Answered: Trouble with device profile (All views are loaded)
Answered: Trouble with device profile (All views are loaded)
Hello,
i getting trouble with my device profiles.
Only one profile is called the function launch but all views are loaded.
The views that are defined in bottom of phone.
And the view that are defined in bottom of table too.
What might be wrong ?
So only the first view is used within my application. The views have the same xtype name.
best regards
mebel
-
Best Answer Posted by ingo.hefti
You are not the only one: http://www.sencha.com/forum/showthre...encha-Profiles
-
15 Nov 2012 5:14 AM #2Sencha Premium Member
- Join Date
- Feb 2012
- Location
- Berne, Switzerland
- Posts
- 584
- Vote Rating
- 32
- Answers
- 35
-
15 Nov 2012 5:25 AM #3
Thx. Thats helpfully.
The idea from DodgyDave looks good.
Code:Ext.define("myapp.view.iphone.MyView", ... Ext.define("myapp.view.android.MyView" ,... Ext.define('myapp.profile.android', { extend: 'Ext.app.Profile', launch: function() { myappp.view.android.MyView.addXtype('myView'); } ... Ext.define('myapp.profile.iphone', { extend: 'Ext.app.Profile', launch: function() { myappp.view.iphone.MyView.addXtype('myView'); } ...
-
11 Dec 2012 4:56 AM #4
It does'nt work for me. adXtype is a private method.
I tried with Ext.ClassManager.setAlias(), but it does'nt work too.
Does anyone find a solution ?


Reply With Quote