Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

swiss number format

Questions related to using nuBuilder Forte.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: swiss number format

Unread post 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
You do not have the required permissions to view the files attached to this post.
paulkauz
Posts: 30
Joined: Fri Oct 30, 2020 7:08 pm

Re: swiss number format

Unread post by paulkauz »

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
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: swiss number format

Unread post 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
paulkauz
Posts: 30
Joined: Fri Oct 30, 2020 7:08 pm

Re: swiss number format

Unread post by paulkauz »

Why does it show the undefined after the number. Do I have to set up something?
You do not have the required permissions to view the files attached to this post.
If you like nuBuilder, please leave a review on SourceForge
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: swiss number format

Unread post by kev1n »

Try creating the format again and assign it to the field.
paulkauz
Posts: 30
Joined: Fri Oct 30, 2020 7:08 pm

Re: swiss number format

Unread post 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 !!
If you like nuBuilder, please leave a review on SourceForge
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: swiss number format

Unread post 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
Post Reply