1. #1
    Sencha User
    Join Date
    Apr 2013
    Location
    Bangalore
    Posts
    3
    Vote Rating
    0
    Prathamesh149 is on a distinguished road

      0  

    Default Unanswered: ISSUE WHILE MIGRATING FROM SENCHA TOUCH 1.0 to 2.1

    Unanswered: ISSUE WHILE MIGRATING FROM SENCHA TOUCH 1.0 to 2.1


    I am trying to migrate from Sencha Touch 1.0 to Sencha Touch 2.1.
    Please help as to how to implement the following in Sencha touch 2.1

    I have posted part of my code , as i cannot copy my entire code here.

    MY CODE:
    tabGlobal=this;

    tabGlobal.tabItem1 = eval("("+"din.view.View2"+")");
    tabGlobal.tabItem2 = eval("("+"din.view.View1"+")");


    This is my function to add a Tab.

    addTab: function() {

    this.tabPanel = Ext.create('Ext.TabPanel', {
    fullscreen: this.fullscreen,
    cardswitchanimation: this.cardswitchanimation,
    ui: this.ui,
    flex: this.flex,
    cls: this.cls,
    plain: this.plain,
    tabBar: this.tabBar,
    items: [this.tabItem1,this.tabItem2],
    listeners: this.listeners
    });

    I get an error saying :

    Uncaught Error: [ERROR][Ext.Container#factoryItem] Invalid config, must be a valid config object.
    Error at the line items: [this.tabItem1,this.tabItem2],

    It worked in Sencha Touch 1.0 , do I need to make any changes in 2.1 to resolve the error ?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    What does this.tabItem1,this.tabItem2 look like?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Apr 2013
    Location
    Bangalore
    Posts
    3
    Vote Rating
    0
    Prathamesh149 is on a distinguished road

      0  

    Default


    this.tabItem1 and this.tabItem2 have the eval expressions of two views: din.view.view1 and din.view.view2.
    Those two views are extending panels respectively.

    While doing the eval of a view, a function is returned. This function is added as items to the tab panel. In sencha touch 1.1, these items were getting pushed as 'this.items.push(eval("("+"din.view.View1"+")"))'.

    Then a doLayout() was done on the tabPanel.
    But in sencha touch 2, 'items.push' method gives error as the method doesnt exist. So we are giving items directly as tabItem1 and tabItem2.
    Please suggest any alternatives/solutions for the same

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi