Results 1 to 4 of 4

Thread: Trouble with device profile (All views are loaded)

  1. #1
    Sencha User
    Join Date
    Jun 2010
    Location
    Germany near cologne
    Posts
    21
    Vote Rating
    0
      0  

    Default 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


  2. #2
    Sencha Premium User
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    723
    Answers
    42
    Vote Rating
    46
      0  

  3. #3
    Sencha User
    Join Date
    Jun 2010
    Location
    Germany near cologne
    Posts
    21
    Vote Rating
    0
      0  

    Default

    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');
        }
    
    
    ...

  4. #4
    Sencha User
    Join Date
    Dec 2007
    Posts
    16
    Vote Rating
    0
      0  

    Default

    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 ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •