1. #1
    Ext User
    Join Date
    Jan 2011
    Posts
    4
    Vote Rating
    0
    rajivpa is on a distinguished road

      0  

    Default populate a list with the selected items from another list

    populate a list with the selected items from another list


    Hi All
    I have a list defined with tpl, which is getting populated from a jsonstore. Now user can select multiple items in this list and move to next page/card, where we want show him the items he selected in the list on previous page/card.

    Being a newbie I have implemented the first list and populated it, I need some ideas to get the selected items from this list and populate the other list as user moves to the next card. Any ideas will be really helpful for me in meeting deadlines.

    Thanks
    Rajiv

  2. #2
    Sencha User
    Join Date
    Jul 2011
    Posts
    7
    Vote Rating
    1
    Ismailp is on a distinguished road

      0  

    Default Solved it!

    Solved it!


    Okey, so after looking at a bunch of tutorials i managed to find a solution:

    Code:
    var fromAirports = new Ext.List({
        	        fullscreen: true,
        		id: 'airportList',
        		indexBar: false,
        		itemTpl : '{firstName} {lastName}',
        		onItemTap: function(item, index) {
        		     var formField = NotiflyApp.views.formField;
        		     var selectedAirport = store.getAt(index).get('firstName');
        		     var selectedIATA = store.getAt(index).get('lastName');
        		     var from = Ext.ModelMgr.create(
        			   { from: selectedAirport + ' ' + selectedIATA }, 'Contact');
        			      NotiflyApp.views.formField.load(from);
        			      NotiflyApp.views.viewport.setActiveItem('formInput', {type: 'fade'});
        			   },
        			    
                    store: store
        });

Similar Threads

  1. Replies: 0
    Last Post: 3 Dec 2010, 7:06 AM
  2. Combobox inner list not aligning list items propertly ?
    By ritesh.kapse in forum Ext 2.x: Help & Discussion
    Replies: 13
    Last Post: 29 Oct 2010, 5:29 AM
  3. Populate XML data in a List
    By busybee in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 19 Oct 2010, 4:09 AM
  4. Replies: 1
    Last Post: 17 Sep 2010, 3:02 AM
  5. Populate dynamically selected items of a item selector
    By Angelo Santos in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 21 Aug 2009, 6:28 PM

Thread Participants: 1