It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

number format change in Pocketquery

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

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.

I try with the good one :)

toLocaleString('fr-FR')

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

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

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

Hi Roberto,

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

Cheers,
Sven

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

3,140 views 4 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you