cancel
Showing results for 
Search instead for 
Did you mean: 

Show numeric value in currency format

sbixsbix
Champ in-the-making
Champ in-the-making
Hi,
I would like to represent some numeric fields in a format similar to the currency one of Excel.
I am using Alfresco Explorer interface.
I did some research with no appreciable reszults.
Have you some suggestion?

Thanks in advance
4 REPLIES 4

sbixsbix
Champ in-the-making
Champ in-the-making
I would like to show a numeric long value with thousands and decimal separators (i.e 1000000 = 1,000,000.00)

rjohnson
Star Contributor
Star Contributor
You will need to write a cusom form control that will use a Javascript library to format the number as you want. As you will need to input these numbers as well, you will need to add Javascript for "edit" mode that will strip out the commas before you post it back to the forms processor.

sbixsbix
Champ in-the-making
Champ in-the-making
Thanks rjhonson for the propmpt reply.
I am not that developper so I will need some more directions

rjohnson
Star Contributor
Star Contributor
If you are not a developer, then you have a problem. The simplest way to achieve what you need would be to take an existing control (number.ftl for example) and customise it with javascript to acheive what you need. Whilst not that difficult, it may not be that straightforward because of the need to strip out commas when editing (assuming your underlying property definition is numeric). I am afraid I cannot provide a step by step non developer guide because I would have to write it to do it.

There is a fair bit on the internet about custom forms controls, but it is all targetted at developers.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.