NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Johan de Klerk on October 18, 2023, 05:44:03 AM

Title: How do I specify the yearRange to show the last 117 years in Date Picker
Post by: Johan de Klerk 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
Title: Re: How do I specify the yearRange to show the last 117 years in Date Picker
Post by: Bruce on October 18, 2023, 06:18:51 AM
      p_web.SetOption(loc:options,'changeYear','^true')
      p_web.SetOption(loc:options,'yearRange','-117:+1')
Title: Re: How do I specify the yearRange to show the last 117 years in Date Picker
Post by: Johan de Klerk on October 18, 2023, 06:24:18 AM
Hi Bruce,

Thank you very much.

Regards

Johan de Klerk
Title: Re: How do I specify the yearRange to show the last 117 years in Date Picker
Post by: Johan de Klerk 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
Title: Re: How do I specify the yearRange to show the last 117 years in Date Picker
Post by: osquiabro 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' )
Title: Re: How do I specify the yearRange to show the last 117 years in Date Picker
Post by: Johan de Klerk 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