Page 2 of 2

Re: swiss number format

Posted: Wed Nov 18, 2020 5:36 am
by admin
paulkauz,

I have added more flexibility to the Format Builder...
number_formats.PNG
format_form.PNG
The changes are on GitHub.

Please test it.


Steven

Re: swiss number format

Posted: Wed Nov 18, 2020 6:52 am
by paulkauz
Hi Steven
Thanks so much. This is so cool. I‘ll try it this evening.
BR Paul

Re: swiss number format

Posted: Wed Nov 18, 2020 8:11 am
by admin
Paul,

I have updated the wiki too...

https://wiki.nubuilder.cloud/ ... at_Builder

You will need to run the Update Button as well.

Steven

Re: swiss number format

Posted: Thu Nov 19, 2020 6:49 pm
by paulkauz
Why does it show the undefined after the number. Do I have to set up something?

Re: swiss number format

Posted: Fri Nov 20, 2020 8:25 am
by kev1n
Try creating the format again and assign it to the field.

Re: swiss number format

Posted: Sat Nov 21, 2020 4:45 pm
by paulkauz
Bug Fix
Replace this line here : https://github.com/steven-copley/nubuil ... ss.js#L937

with these 2 lines:

var decimals = splitNumber.length == 1 ? '' : splitNumber[1];
return String(CF[0] + ' ' + nuAddThousandSpaces(splitNumber[0], CF[1]) + CF[2] + decimals).trim();

with thanks to kev1n !!

Re: swiss number format

Posted: Tue Nov 24, 2020 1:48 am
by admin
Thanks, everyone involved.

That fix is on Github.

Please test it.

I'll update Sourceforge when Sourceforge is back up and running.


Steven