NetTalk Central

Author Topic: French/Dutch Language Date picker worked in NT 7.06 but not in NT 7.12  (Read 2982 times)

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Hi Bruce,
Attached is an example where I have modified the jquery date picker for different languages. In the example the login screen has a selection of languages, select the French language. When entering a date on a form, the date picker calendar appears and operates correctly, however the selected date from the calendar does not appear in the date field.  Not sure what is happening when the date picker is used as EIP field on a browse. This code worked when compiled with NT7.06.  I tried entering the date picture in the new “Date Lookup Field” picture, but the problem persists. The  p_web.site.dateOptions are set in the “Processlink” embed of the webhandler procedure. When the user logs in with English language and the default date picker is used, the date selection works fine.   Are there additional options that need to be set?

Thanks
Rob 


[attachment deleted by admin]

estadok

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • EstaSoft
    • Email
Hi Rob!

I had the same problem! You can fix this by change dateFormat: ''dd-mm-yyyy'' to dateFormat: ''dd-mm-yy'' in ProcessLink procedure.
Clarion 9.0.10376
NetTalk 7.26
SecWin 6.25
StringTheory 1.92

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Hi Rob,

yeah, this doesn't appear to be a NetTalk change but more of a jQuery UI change - and probably not really a change there as much as a different "side effect" for an incorrect value.

the key of course is the dateFormat option you are setting. According to the jQuery UI doc here;
http://api.jqueryui.com/datepicker/#utility-formatDate
you should use yy for a 4 digit year, and just y for a 2 digit year.  I'm not sure if that's new (I can't find anything to suggest it is), but where yyyy used to resolve to just yy (the second being ignored) it's now seeing it as yy(4 digit year) followed by yy(another 4 digit year.)

So Alexandr's solution is the correct one.

cheers
Bruce