Page 2 of 2

Re: swiss number format

PostPosted: Wed Nov 18, 2020 2:06 pm
by admin
paulkauz,

I have added more flexibility to the Format Builder...

number_formats.PNG
number_formats.PNG (28.41 KiB) Viewed 72 times


format_form.PNG
format_form.PNG (10.22 KiB) Viewed 72 times


The changes are on GitHub.

Please test it.


Steven

Re: swiss number format

PostPosted: Wed Nov 18, 2020 3:22 pm
by paulkauz
Hi Steven
Thanks so much. This is so cool. I‘ll try it this evening.
BR Paul

Re: swiss number format

PostPosted: Wed Nov 18, 2020 4:41 pm
by admin
Paul,

I have updated the wiki too...

https://wiki.nubuilder.net/nubuilderforte/index.php/Format_Builder

You will need to run the Update Button as well.

Steven

Re: swiss number format

PostPosted: Fri Nov 20, 2020 3:19 am
by paulkauz
Why does it show the undefined after the number. Do I have to set up something?

Re: swiss number format

PostPosted: Fri Nov 20, 2020 4:55 pm
by kev1n
Try creating the format again and assign it to the field.

Re: swiss number format

PostPosted: Sun Nov 22, 2020 1:15 am
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

PostPosted: Tue Nov 24, 2020 10:18 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