Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

swiss number format

Questions related to using nuBuilder Forte.
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 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: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 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: 4566
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 529 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: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 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