Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
cassl4
Level 7

Creating a page for date entry for Roku?

I'm working on a Roku app and we want the user's date of birth. Trying not to get too complex on the parsing end (so would prefer to not just have a text box where the user can enter whatever they want). I looked into using a roPinEntryDialog, but that unfortunately I think is only meant for entering payment information. I see that roDateTime is a thing, but that seems to only get the current date, and not have any types of inputs for it.

Any ideas or help?
0 Kudos
9 Replies
Roku Employee
Roku Employee

Re: Creating a page for date entry for Roku?

0 Kudos
destruk
Level 10

Re: Creating a page for date entry for Roku?

Perhaps the easiest way would be to use three pin dialogs -- enter month, enter day, enter year.  By using pin dialogs you can be sure they will only enter numbers.
...or use one pin dialog with 6 digits instructing the user to enter their MMDDYY birthdate.
0 Kudos
cassl4
Level 7

Re: Creating a page for date entry for Roku?

"RokuNB" wrote:
For posterity, see also https://stackoverflow.com/questions/444 ... y-for-roku

That's my question there, too, they told me to post here hahaha. Smiley Happy
0 Kudos
cassl4
Level 7

Re: Creating a page for date entry for Roku?

"destruk" wrote:
Perhaps the easiest way would be to use three pin dialogs -- enter month, enter day, enter year.  By using pin dialogs you can be sure they will only enter numbers.
...or use one pin dialog with 6 digits instructing the user to enter their MMDDYY birthdate.

I thought about that, but I think the PIN components are for purchasing only?
0 Kudos
destruk
Level 10

Re: Creating a page for date entry for Roku?

No, the PIN component screen is for entering any numeric value you like.  The Roku PIN can only be used for purchasing through roku billing.
0 Kudos
Roku Employee
Roku Employee

Re: Creating a page for date entry for Roku?

"cassl4" wrote:
"RokuNB" wrote:
For posterity, see also https://stackoverflow.com/questions/444 ... y-for-roku

That's my question there, too, they told me to post here hahaha. Smiley Happy

I did indeed 8-)
I also "think LabelList is a good start to implement something akin to iOS's UIDatePicker. E.g. with remote Up-Down user selects month, then press Right to move to the day column, then Right onto the year list."
0 Kudos
cassl4
Level 7

Re: Creating a page for date entry for Roku?

"RokuNB" wrote:
"cassl4" wrote:
"RokuNB" wrote:
For posterity, see also https://stackoverflow.com/questions/444 ... y-for-roku

That's my question there, too, they told me to post here hahaha. Smiley Happy

I did indeed 8-)
I also "think LabelList is a good start to implement something akin to iOS's UIDatePicker. E.g. with remote Up-Down user selects month, then press Right to move to the day column, then Right onto the year list."

Wouldn't that year list be really long, though?  How would Roku handle that?
0 Kudos
Roku Employee
Roku Employee

Re: Creating a page for date entry for Roku?

"cassl4" wrote:
Wouldn't that year list be really long, though?  How would Roku handle that?

Handle it with gusto, i would hope? :mrgreen:
How long would such list be, 100-200? And one can use <</>> for fast scroll/page, right?
0 Kudos
Roku Employee
Roku Employee

Re: Creating a page for date entry for Roku?

@cassl4 -
see here @marcelo.cabral just posted a date-entry implementation
https://forums.roku.com/viewtopic.php?f=34&t=104475
0 Kudos