Welcome to the CrackBerry Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By Brian Scheirer
  1. TheStoof's Avatar
    CrackBerry Addict

    Posts
    696 Posts
    Global Posts
    701 Global Posts
    Thread AuthorThread Author   #1  

    Default DateTimePicker

    How do you get the selected value?

    For the life of me, I can't find the getter method to retrieve the value.

    https://developer.blackberry.com/cas...imepicker.html

    I'm using QML with a javascript trigger to retrieve the value. At least, that was the plan.
  2. Brian Scheirer's Avatar
    CrackBerry Abuser

    Posts
    192 Posts
    #2  

    Default

    You use standard JavaScript functions (JavaScript Date Object) such as getYear() or getHours() and you want it of the "value" so it would be called as "value.getYear()". So you can see in the cookbook example (https://github.com/blackberry/Cascad...TimePicker.qml) they are comparing the value year,month,day to a variable that gets today's year,month,day to determine which picture to display.
    Check out my BB10 Cascades Coding Site: http://BBcascades.com/ Blog: http://bbcascadescode.tumblr.com/

    My Apps: The Dive Plan (Built for BlackBerry Approved) | Visual Connection | Combo Pics | Beer Math | Random Stories | Logic Puzzles
    Thanked by:
    supnez (03-05-2013) 
    supnez likes this.
  3. TheStoof's Avatar
    CrackBerry Addict

    Posts
    696 Posts
    Global Posts
    701 Global Posts
    Thread AuthorThread Author   #3  

    Default

    Wow. I obviously missed those methods when looking at that code. Thank you.

Posting Permissions