Sigma Php Ajax framework, Ajax Components, GUI Builder
May 21, 2012, 10:55:27 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Format issue in comboboxes of type datepicker  (Read 866 times)
ludwigl
Sr. Member
****
Posts: 47


View Profile
« on: August 03, 2010, 03:41:15 AM »

Hi linb,

my environment is Sigma Visual V3.0 R909 on Windows XP SP3 and Firefox 3.6.8.

I introduced a new locale file for German in which I modified the definition of
    YMD to function(n,a,b,c){return (c<10?"0"+c:c) +'-'+(b<10?"0"+b:b)+'-'+a}
in order to get the German date format dd-mm-yyy.

This works fine except for one small issue.
In the comboxes of type datepicker, the date is displayed fine, but as soon as the comboinput gets the focus, the
date is displyed in the format "yyyy-mm-dd".

I localized the issue in the onFocus function of the combobox, in which the different date format is not considered.

Do you think it is possible to fix this issue?

Thank you very much in advance,

Ludwig

Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #1 on: August 03, 2010, 06:04:44 AM »

Logged
ludwigl
Sr. Member
****
Posts: 47


View Profile
« Reply #2 on: August 03, 2010, 06:20:17 AM »

Hi linb,

thank you very much for the quick answer and the working solution.

With best regards,

Ludwig
Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #3 on: August 03, 2010, 09:03:52 AM »

New property dateEditorTpl added, You can use setDateEditorTpl now.
Logged
ludwigl
Sr. Member
****
Posts: 47


View Profile
« Reply #4 on: August 05, 2010, 12:35:18 AM »

Hi linb,

thank you very much for the new property.

It works fine and I like this solution much better than your first suggestion, because it is much easier to implement.

With best regards,

Ludwig
Logged
ludwigl
Sr. Member
****
Posts: 47


View Profile
« Reply #5 on: August 05, 2010, 07:26:52 AM »

Hi linb,

I detected a small issue with the format in the comboboxes of type datepicker (R928).

When I modify the date manually (by typing) and hit return, the integer value of the date is displayed,
when I leave the combobox by clicking into another field, the correct date format is displayed.

Could you please have a look at this?

With best regards,

Ludwig
Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #6 on: August 05, 2010, 05:33:34 PM »

Fixed.
Logged
ludwigl
Sr. Member
****
Posts: 47


View Profile
« Reply #7 on: August 06, 2010, 12:24:57 AM »

Thank you!

It works fine now.

Ludwig
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!