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

how to get value of a picker

$
0
0

hi,

im having trouble getting the value of a picker that is inside a scrollableview.

i have this structure:

scrollableview view1 textfields pickers

view2
    textfields
    pickers

view3
    textfields
    pickers

view4
    textfields
    pickers
    send button

when i press the send button i cant get the value of the pickers that are in view1, view2, view3, the pickers and the send button that are in view4 are working ok, also i can get the value of the textfields correctly that are ir view1, view2 and view3

here is part of my code:

js

function crearFato() {
 
    setTimeout(function(e){
 
        // this pickers are in view1
        vRiesgo2 = $.riesgo2.getSelectedRow(0).title;
        cRiesgo2 = '"cRiesgo2":' + vRiesgo2;
        cRiesgoParams = cRiesgo2 + ', ' +cRiesgoParams;
 
        vRiesgo3 = $.riesgo3.getSelectedRow(0).title;
        cRiesgo3 = '"cRiesgo3":' + vRiesgo3;
        cRiesgoParams = cRiesgo3 + ', ' +cRiesgoParams;
 
    },400);
 
 
}
any help will be very appreciated!

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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