NetTalk Central

Author Topic: How do I specify the yearRange to show the last 117 years in Date Picker  (Read 4038 times)

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
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
Clarion 10, NT 11.57

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
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')

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
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
Clarion 10, NT 11.57

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
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
Clarion 10, NT 11.57

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
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' )

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
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
Clarion 10, NT 11.57