NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
How do I specify the yearRange to show the last 117 years in Date Picker
« previous
next »
Print
Pages: [
1
]
Author
Topic: How do I specify the yearRange to show the last 117 years in Date Picker (Read 3689 times)
Johan de Klerk
Full Member
Posts: 217
Johan de Klerk
How do I specify the yearRange to show the last 117 years in Date Picker
«
on:
October 18, 2023, 05:44:03 AM »
Hi,
I have tried:
p_web.SetOption(loc:options,'yearRange', '-117')
I think it might be the '117' that is causing my Date Picker not to show.
Any help will be appreciated.
Regards
Johan de Klerk
Logged
Clarion 10, NT 11.57
Bruce
Global Moderator
Hero Member
Posts: 11244
Re: How do I specify the yearRange to show the last 117 years in Date Picker
«
Reply #1 on:
October 18, 2023, 06:18:51 AM »
p_web.SetOption(loc:options,'changeYear','^true')
p_web.SetOption(loc:options,'yearRange','-117:+1')
Logged
Johan de Klerk
Full Member
Posts: 217
Johan de Klerk
Re: How do I specify the yearRange to show the last 117 years in Date Picker
«
Reply #2 on:
October 18, 2023, 06:24:18 AM »
Hi Bruce,
Thank you very much.
Regards
Johan de Klerk
Logged
Clarion 10, NT 11.57
Johan de Klerk
Full Member
Posts: 217
Johan de Klerk
Re: How do I specify the yearRange to show the last 117 years in Date Picker
«
Reply #3 on:
October 18, 2023, 06:34:53 AM »
Hi Bruce,
It seems the -117 does not work.
Instead of going back to 1906 it only goes back to 1923.
Regards
Johan de Klerk
Logged
Clarion 10, NT 11.57
osquiabro
Hero Member
Posts: 687
Re: How do I specify the yearRange to show the last 117 years in Date Picker
«
Reply #4 on:
October 18, 2023, 12:15:43 PM »
for me this work in NT12.62
p_web.SetOption(loc:options,'changeMonth','true')
p_web.SetOption(loc:options,'changeYear','true' )
p_web.SetOption(loc:options,'yearRange:','-117:+0' )
Logged
Johan de Klerk
Full Member
Posts: 217
Johan de Klerk
Re: How do I specify the yearRange to show the last 117 years in Date Picker
«
Reply #5 on:
October 18, 2023, 09:03:22 PM »
Hi,
Thank but it still only goes back to 1923.
It might be because I am using NT 11.57.
Have NT14 but not yet upgraded.
Regards
Johan de Klerk
Logged
Clarion 10, NT 11.57
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
How do I specify the yearRange to show the last 117 years in Date Picker