Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Field currency or format for number-field

Lars Fischer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 9, 2013

Is it possible to get a field for curreny (Euro) for Igrid Table Grid Plugin? Or is there an easy possibility to build such a field? It wpuld be enough to have a number field with two digits displayed after "." (like 19.80 or 2.00). Better would be a strikt format like 19,80 € or 2,00 €.

2 answers

0 votes
Brian Bishop
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2015

This code in my currency custom field - which is set for USD - could be changed to format for Euro:

 

view.vm

#if ($value)
$$numberTool.format('#,##0.00', $value)
#end

 

I can supply the full source code if you like.

Stuti Golwala September 19, 2018

Hi Brian,

Is it possible to share your full code?

0 votes
francis
Atlassian Partner
June 9, 2013

Hi Stephan,

We are currently working on the calculated column feature.
You will be able to add a formula to each column of type string, integer or number.

For example:

col.linetotal.type=number
col.linetotal.formula = {quantity} * {price} * {discount}

The obvious next step is of course a number formatting capability

col.linetotal.formatNumber = "€ 0.00"

You're welcome to track following feature request
https://support.idalko.com/browse/IGRID-1824

Francis

francis
Atlassian Partner
March 31, 2014

FYI

col.xyz.formatNumber has been released in 1.13

Suggest an answer

Log in or Sign up to answer