Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
cassl4
Visitor

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 9
NB_
Roku Guru

Re: Creating a page for date entry for Roku?

0 Kudos
destruk
Streaming Star

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
Visitor

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. 🙂
0 Kudos
cassl4
Visitor

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
Streaming Star

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
NB_
Roku Guru

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. 🙂

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
Visitor

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. 🙂

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
NB_
Roku Guru

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
NB_
Roku Guru

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.