Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

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

      0  

    Default NavigationView & Controller Reference Issues

    NavigationView & Controller Reference Issues


    Hello,
    Attached is a project I am working on and the navigation view is giving a hard time. It used to work fine before the major update that change the metadata. Now when I add views to the navigation view in the designer and test the app in the browser, all the view are loaded and added to the navigation view giving the back button right from the beginning. Also, I added a simple reference to a list item and when I use the get function I get 'undefined' for that list but the reference on the navigation view works fine... I doubled, tripled checked and it should work. I'm lost... please help!
    Attached Files

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

      0  

    Default


    Could anyone upload a working example of a designer project using navigation views? My views don't seem to create on the application loading. I need to use Ext.create to push them to the view.

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
    bharatn is on a distinguished road

      0  

    Default


    Hi,

    You are hitting a Sencha Touch Bug. The issue is that you have all your ways already added to Navigation View because of which Navigation View populates the Back button. Not sure if thats resolved in 2.0.1. We will test and let you know.

    Remove the last item from Navigation View so it has only one child and add that via push when you tap on the buttons in the ScheduleSelection.
    Bharat Nagwani
    Sencha Designer Development Team

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

      0  

    Default Thank you

    Thank you


    Thats good to know! Also, is it normal that the views I add are not instantiated? When I put a view that is not the initial one, I can't access it through a reference unless using Ext.create(). Is that also a bug or is it a new way of doing things in sencha? And after a few back and forth my back button stop to work... Like it froze or something.

    Thanks!

  5. #5
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
    bharatn is on a distinguished road

      0  

    Default


    When you do a push, you can pass an object say with a xtype or a reference to already created component via Ext.Create. In the first case, an instance will be created. Push basically does an add.

    If you are pushing/popping frequently its efficient to store a reference to an instance and using that to push it on the stack. See NavigationView example in the Touch examples for reference.
    Bharat Nagwani
    Sencha Designer Development Team

  6. #6
    Sencha User
    Join Date
    Feb 2012
    Posts
    69
    Vote Rating
    2
    deshartman is on a distinguished road

      0  

    Default


    Would it help to set the ActiveItem to 0 or 1?

    In designer there is no active item for NavigationView, but since it has cards, I thought this may be possible

    Des

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

      0  

    Default


    So I am creating my view with Ext.create() and then using the created getter that is generated from the controller reference. Pushing the view works but pressing back seems to destroy the instance that was created... So am I to understand that the pop() function destroys the object after removing it from the active view?

  8. #8
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
    bharatn is on a distinguished road

      0  

    Default


    It does not destroy the item, simply removes from the stack. Thats why its important to save the reference from Ext.create so you can push it again without using Ext.create. Please see the navigation view example in Touch sdk.
    Bharat Nagwani
    Sencha Designer Development Team

  9. #9
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    264
    Vote Rating
    9
    worthlutz is on a distinguished road

      0  

    Default


    Quote Originally Posted by bharatn View Post
    It does not destroy the item, simply removes from the stack. Thats why its important to save the reference from Ext.create so you can push it again without using Ext.create. Please see the navigation view example in Touch sdk.
    Does this not depend upon "autoDestroy" setting somewhere? I do not understand all the ins and outs of this but was having the same problem with the back button quit working after going back and forth two times. I never figured that out. Had to start over on my design anyway so never resolved it.