Decimal point on numpad

Forum to discuss the Web client version of Servoy.

Decimal point on numpad

Postby lwjwillemsen » Fri Sep 30, 2011 8:30 pm

Does anyone know how to get the point (.) key on the numpad (US keyboard layout) to act like a komma (,) in number fields in the Servoy Webclient ?
Servoy smart client does it already (hit the point key and a komma appears) and Microsoft Excel also.
It happens in Firefox and Microsoft Internet Explorer.

Servoy 5.2.10

Any help appreciated in taming the keyboard stallion...
Thanks,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 596
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Decimal point on numpad

Postby lwjwillemsen » Mon Oct 03, 2011 12:48 pm

Anybody in Europe with knowledge of this problem ?
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 596
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Decimal point on numpad

Postby lwjwillemsen » Tue Nov 08, 2011 10:23 am

We have some Dutch web Client customers who are not too happy about this...
Other Dutch web apps like Rabobank Telebanking do support the numPad decimal key.

1) How do other Dutch ISV's cope with this US keyboard layout issue ?
2) I would expect a Servoy solution to this issue.

Regards,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 596
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Decimal point on numpad

Postby jcompagner » Tue Nov 08, 2011 1:42 pm

Rabo also just inserts a . when i press the numpad .
what rabo does is if there is 1 . in the entry they just make it a , after you leave the field.
So even if i type:

1.000

it results in

1,00

which i think i a bit wrong..
and it doesn't matter if i type a . through the numpad or by using the 'normal' .

so they have no special support what so ever for that.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8096
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Decimal point on numpad

Postby lwjwillemsen » Tue Nov 08, 2011 2:25 pm

Hi Johan,

No Support ? I wished we could do that Rabo-trick in the Servoy web client on number fields.

Functionally I can enter on their site a decimal portion in the amount field with only using the (US) numpad and that's the end user need !

Changing all numeric fields on forms to text with extra logic for point-handling does not look like a nice and easy workaround to us...

Please provide a solution...

Regards,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 596
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Decimal point on numpad

Postby jcompagner » Tue Nov 08, 2011 6:16 pm

i guess what you want is that . or , are both just the same thing?
So some customers type "1,110" and others type "1.110' which is just the same value? (so 1,11 in dutch)

Directly in Servoy you can use converters for that so yes make it a Text column and convert it the way you want from and to a number.

Or maybe somebody can make a plugin for you that attaches a key listener and converts and . to ,
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8096
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Decimal point on numpad

Postby lwjwillemsen » Tue Nov 08, 2011 7:34 pm

Hi Johan,

Thanks for the converter info.

Can you imagine the amount of work that has to be done in case of hundreds of form number fields only for the webclient :(
for the Smart Client already behaves the (Dutch) way !

Can't the Smart Client numeric input logic be build into the Web Client ?
Should not the smart and web basic key handling be the same ?

Regards,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 596
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Decimal point on numpad

Postby jcompagner » Tue Nov 08, 2011 11:48 pm

i think that could be possible, because it seems that we can catch the . on the numpad, in javascript we do seem to get a special char code for that.
So make a case so that we can look at it if we can catch that and then insert a , or . depending on the locale of the user.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8096
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Decimal point on numpad

Postby lwjwillemsen » Wed Nov 09, 2011 12:52 am

Hi Johan,

There was already a case present in the old support system # 422246. (Not all cases were migrated to JIRA it seems)

Can you pick up it there or shall I enter it again in JIRA ?

Regards,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 596
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Decimal point on numpad

Postby jcompagner » Wed Nov 09, 2011 11:02 am

that one was closed (not fixed), and those where not moved to jira only open issues
So make a case in jira so that we can look once more to it.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8096
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Decimal point on numpad

Postby lwjwillemsen » Wed Nov 09, 2011 1:58 pm

Ok, https://support.servoy.com/browse/SVY-1041

Thanks for looking into it...

Regards,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 596
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Decimal point on numpad

Postby Jan Aleman » Fri Nov 11, 2011 1:08 pm

Personally I find applications that overwrite my personal preference of using a . for decimal separation (including Rabobank) very annoying. The whole concept of a locale is that a developer respects the preferences of the user and does not impose his own preference on them.

Nevertheless in Servoy you can simply use a converter to do what you want.
Jan Aleman
Servoy
Jan Aleman
Site Admin
 
Posts: 2074
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Re: Decimal point on numpad

Postby lwjwillemsen » Fri Nov 11, 2011 3:34 pm

Hi Jan,

Thanks for your contribution.

We have hundreds of number fields with decimal portion.
Must we extend all those fields with a convertor ? Seems like a lot of work for using the decimal sign on the numpad...
As said before the Servoy Smart Client already supports all those NL people with an US-layout keyboard...

I think I am gonna start a (web)shop who sells keyboards with NL-layout !

Regards,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 596
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Decimal point on numpad

Postby lwjwillemsen » Fri Nov 11, 2011 4:39 pm

Some extra info :

The convertor datatype must be set to text to intercept the . or , in the global convertor method , => I can't do arithmetic with the number field anymore within Servoy :(

Regards,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 596
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 2 guests

cron