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

Undefined when getting a value through global variable

$
0
0

var f2 = Ti.UI.createTextField({
        value: myproperties.f2,
});
 
 Titanium.App.Properties.setString("f2",f2.value);
     myproperties.f2 = Titanium.App.Properties.getString("f2");
 
    f2.addEventListener('focus',function(e){
        alert(myproperties.f2);
 
    });
Hi, I am getting undefined value after I have entered a value in the text field. I should get the value which I have entered previously, but here Iam getting as "undefined" in the textfield. Thanks

Viewing all articles
Browse latest Browse all 8068

Latest Images

Trending Articles



Latest Images

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