cancel
Showing results for 
Search instead for 
Did you mean: 

Floating point - comma?

msvoren
Champ in-the-making
Champ in-the-making
Hi!
Is there a way to tell alfresco to use comma instead of dot, for float data type?

We are using our alfresco implementations for accounting, and comma is standard in our country.

Any ideas?
7 REPLIES 7

derek
Star Contributor
Star Contributor
Hi,
I curious about this.  How we store numbers is irrelevant as long as they represent the real number.  I presume you want numerical property fields in the UI displayed with a comma.
Regards

msvoren
Champ in-the-making
Champ in-the-making
Yes Derek, that is correct.
Any ideas how to do this?

gavinc
Champ in-the-making
Champ in-the-making
What area of the UI are you seeing the problem, is it in a Web Form (in a web project) or in the Property Sheet?

If its in a web form you may need to look at either tweaking xforms.js or implementing a custom widget, to do this have a look at http://wiki.alfresco.com/wiki/Creating_XForms_Widgets

If it's in a Property Sheet JSF should be doing the conversion and displaying the correct format, if not you may need to provide a Converter for the property, see this wiki page for details: http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata#Converters

mabayona
Champ on-the-rise
Champ on-the-rise
I had this problem in the Property Sheet and since JSF should be doing it (i.e. locale setting), I looked and fiddled long time how to configure it and had to give up.

At the end I´ve used a behaviour to display the comma. However, this only solved the output part of it. Input still needs to be done using point. Smiley Sad (my users are not happy with it)

msvoren
Champ in-the-making
Champ in-the-making
Yes, that's my case too.. Input is even bigger problem than output.. I would like to enable my customers to input float number with comma.

I wonder why alfresco team didn't think of that.. Large amount of documents are of financial matter.. There should be a way to localize these settings.

derek
Star Contributor
Star Contributor
Smiley Sad (my users are not happy with it)
You've raised a bug and/or contacted support for it, then.

mabayona
Champ on-the-rise
Champ on-the-rise
You are right…. Sorry for the delay.

https://issues.alfresco.com/jira/browse/ALFCOM-2610