Results 1 to 4 of 4

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

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    27
    Vote Rating
    0
      0  

    Default 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
    101
      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
      0  

    Default 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
      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.

Posting Permissions

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