1. #11
    Sencha User
    Join Date
    Feb 2012
    Posts
    21
    Vote Rating
    1
    DracisFL is on a distinguished road

      0  

    Default


    Hi rg-flow,

    I was able to get your window to popup..

    Code:
    //this.getMyWindow().show();
    var blah = this.getMyWindowView();
    var blah2 = new blah();
    blah2.show();
    Using the automatic getter that retrieves the View Class, I placed that class in "blah". I then created a new instance (blah2) of class "blah" and showed that.. I don't know if I'm describing it exactly right.. but it seems to work well.

    Regards,

  2. #12

  3. #13
    Sencha User
    Join Date
    Jun 2009
    Location
    Redwood City, CA
    Posts
    197
    Vote Rating
    6
    CaliLuke is on a distinguished road

      0  

    Default


    The problem you ran into is simple: the window didn't exist yet when you called it. Hence the "undefined" problem. In Ext JS or Touch you need to instantiate your components. Sometimes Architect does it for you (for example when you mark a view as the initial view) but the rest you have to do manually as we can't possibly forecast what you will be doing in your application.

    For this kind of things, I suggest you pick up an introductory book to Ext JS or Sencha Touch and skim through it, I'm sure most of the problems you're running into will go away quickly.
    --
    Luca Candela
    twitter: @luckymethod