Forums

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

number format change in Pocketquery

Adrien Dupuis April 1, 2019

Hi,

I try to change a format number in the converter with toLocalString() function :

number.toLocalString('fr-FR');

But there is no effect on the display number on my page...

Anybody knows what can I do ??

 

Thanks !

Adrien

2 answers

2 votes
Sven Schatter _Lively Apps_
Atlassian Partner
April 1, 2019

Looks like a simple typo to me:

var formattedNumber = number.toLocaleString('fr-FR');

Did you know you can also format your numbers in your template instead of your Converter? For this see Velocity API Available In Templates where you will find that the Velocity NumberTool is available.

Adrien Dupuis April 2, 2019

I try with the good one :)

toLocaleString('fr-FR')

but I have no change on my displaying confluence page... 

Sven Schatter _Lively Apps_
Atlassian Partner
April 4, 2019

Pretty hard for me to figure out without seeing all of your converter. ;)

Please raise a ticket at our ServiceDesk for PocketQuery and attach your converter, template and query and tell us exactly what you are trying to achieve. Feel free to censor any sensitive data.

Best regards,
Sven

0 votes
Roberto Marquez Bittencourt April 16, 2020

Hi,

I have the same problem. I used the instruct below, but i get the result in plain text. If i not use de locale pt_BR (Brazil), i get the right result, but in english format.

$numberTool.format('currency', $value, 'pt_BR')

 

Best regards,

Roberto

Sven Schatter _Lively Apps_
Atlassian Partner
April 17, 2020

Hi Roberto,

since you also raised a support ticket we'll talk there! :)

Cheers,
Sven

Roberto Marquez Bittencourt April 17, 2020

Ok.

Cheers,

Roberto

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events