Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How to get the value in the picker so that it can be move on the next window?

$
0
0

Hi, I am having trouble getting the value which was chosen in the picker. I received this message [Cannot read property 'title' of undefined]

//TableNo
var TableNo = Ti.UI.createPicker({
    // setBackgroundColor : "white",
    // color : 'black',
    top : "45%",
    left : "45%",
    height : "10%",
    width : "20%"
});
 
var Table = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
 
var column1 = Ti.UI.createPickerColumn();
 
for (var i = 0, ilen = Table.length; i < ilen; i++) {
    var row = Ti.UI.createPickerRow({
        title : Table[i]
    });
    column1.addRow(row);
}
 
TableNo.add(column1);
TableNo.selectionIndicator = true;
 
//TableNo Button
var TableNobtn = Titanium.UI.createButton({
    // backgroundImage : '/images/SocialBut.jpg',
    // backgroundSelectedImage : '/images/SocialBut1.jpg',
    // backgroundDisabledImage : '/images/SocialBut1.jpg',
    title : "Next",
    top : '71%',
    width : '100%',
    height : '8%'
});
 
TableNobtn.addEventListener('click', function(e) {
    var TableNobtn = Titanium.UI.createWindow({
        url : '/ui/tablet/NoOfPax.js',
        backgroundImage : '/images/BG.jpg',
        modal : true,
        fullscreen : true,
        navBarHidden : true
    });
     TableNobtn.TableNumber = e.row.title;
    TableNobtn.open();
});

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>