swiss number format

Questions related to using nuBuilder Forte.

Re: swiss number format

Postby admin » Wed Nov 18, 2020 2:06 pm

paulkauz,

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

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


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


The changes are on GitHub.

Please test it.


Steven
admin
Site Admin
 
Posts: 3402
Joined: Mon Jun 15, 2009 9:53 am

Re: swiss number format

Postby paulkauz » Wed Nov 18, 2020 3:22 pm

Hi Steven
Thanks so much. This is so cool. I‘ll try it this evening.
BR Paul
If you like nuBuilder, please leave a review on SourceForge
paulkauz
 
Posts: 27
Joined: Sat Oct 31, 2020 3:38 am

Re: swiss number format

Postby admin » Wed Nov 18, 2020 4:41 pm

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
admin
Site Admin
 
Posts: 3402
Joined: Mon Jun 15, 2009 9:53 am

Re: swiss number format

Postby paulkauz » Fri Nov 20, 2020 3:19 am

Why does it show the undefined after the number. Do I have to set up something?
Attachments
Bildschirmfoto 2020-11-19 um 18.45.36.png
Bildschirmfoto 2020-11-19 um 18.45.36.png (19.36 KiB) Viewed 59 times
If you like nuBuilder, please leave a review on SourceForge
paulkauz
 
Posts: 27
Joined: Sat Oct 31, 2020 3:38 am

Re: swiss number format

Postby kev1n » Fri Nov 20, 2020 4:55 pm

Try creating the format again and assign it to the field.
If you like nuBuilder, please leave a review on SourceForge

nuBuilder Code Library (82)
Installation Guides
Updating nuBuilder

Join Discord to talk about nuBuilder!
kev1n
 
Posts: 1084
Joined: Mon Oct 15, 2018 2:13 am

Re: swiss number format

Postby paulkauz » Sun Nov 22, 2020 1:15 am

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 !!
If you like nuBuilder, please leave a review on SourceForge
paulkauz
 
Posts: 27
Joined: Sat Oct 31, 2020 3:38 am

Re: swiss number format

Postby admin » Tue Nov 24, 2020 10:18 am

Thanks, everyone involved.

That fix is on Github.

Please test it.

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


Steven
admin
Site Admin
 
Posts: 3402
Joined: Mon Jun 15, 2009 9:53 am

Previous

Return to General