1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    27
    Vote Rating
    0
    chsrinivasgupta is on a distinguished road

      0  

    Default Unanswered: how to pass values from one view to other view

    Unanswered: how to pass values from one view to other view


    how to pass values from one view to other view in secha touch

  2. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Answers
    132
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    Can you explain what you are trying to do more? It is hard to offer advice when it is so vague.

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    27
    Vote Rating
    0
    chsrinivasgupta is on a distinguished road

      0  

    Default how to pass list item from one view to other view

    how to pass list item from one view to other view


    i have a list control. I want to pass the selected list item from that view to another view.

    Thanks in advance.

  4. #4
    Sencha Touch Premium User
    Join Date
    Oct 2012
    Location
    Belgium
    Posts
    4
    Vote Rating
    0
    robrecht@globis.be is on a distinguished road

      0  

    Default


    Code:
    var id = record.get('articlesubgroup_id');
    var me = this;
    
    if(record) {
        store = Ext.data.StoreManager.lookup('ArticleStore');
        store.getProxy().setUrl('json/article.jsp?id='+id);
        store.load();
        details = Ext.create('Globis.view.ArticleContainer', {title: 'Article'});
        me.getMainNav().push(details);
    }
    This code is in my itemtap function in controller.
    I change the url of my store to show just the information I need.

    Alternatively you can pass your parameters via the extraParams property.
    These extra parameters are placed as url parameters just like that.

    extraParams: {id:10,name:me}

    the url will look like : someurl?id=10&name=me

    Hope this helped.

Thread Participants: 2