ich möchte die ausgewählte Zeile mit dem Wert aus tableview und kopieren in textfiled für appcelerator

Hallo alle
ich möchte die ausgewählte Zeile Wert in textfield-also, wie kann ich kopieren Sie den Wert in die textfiled. also, wie kann ich dies tun...my_combo ist textfiled
Code:

var Tab_data = [

     { title:'Row 1', hasChild:true },
     { title:'Row 2', hasChild:true },
     { title:'Row 3', hasChild:true },
     { title:'Row 4', hasChild:true }
];


var tab = Titanium.UI.createTableView({
    top:43,
    data:Tab_data
});

tab.selectionIndicator=true;

tab.addEventListener('click',function(e) {

    var ind = e.index;

    if(e.selectRow)
    {
        Titanium.API.inof(' Selected clicked');
        my_combo.value = e.selectRow.title;
    } 

});

InformationsquelleAutor Anjan | 2011-05-11

Schreibe einen Kommentar