Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Format Field as Currency
-
- Posts: 16
- Joined: Thu Apr 15, 2021 5:27 pm
Format Field as Currency
Hello, I recently installed nuBuilder on Ubuntu and I'm trying to import an existing set of data in csv format. Its worked so far but I can't figure out how to get one of the columns to be formatted as currency automatically. From what i've read the way to do this is to specify a nunumber field on the form, but even creating a fresh test form and table with a nunumber field on fastform it doesn't work, on the test form if i put in $123.45 it formats it as 123.4500. Is there something I need to change to get this to work?
Thanks in advance.
Thanks in advance.
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Format Field as Currency
Hi,
Is the correct number format set ? (This dialog can be opened by double-clicking the object's label)
Is the correct number format set ? (This dialog can be opened by double-clicking the object's label)
You do not have the required permissions to view the files attached to this post.
-
- Posts: 16
- Joined: Thu Apr 15, 2021 5:27 pm
Re: Format Field as Currency
That field is blank for me.
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Format Field as Currency
There should be 2 default formats already (2 rows in the table zzzzsys_format)
Open the Format Builder and check if you see any formats there. If not, create it. You can also run this SQL on the DB to have it created:
Open the Format Builder and check if you see any formats there. If not, create it. You can also run this SQL on the DB to have it created:
Code: Select all
INSERT INTO `zzzzsys_format` (`zzzzsys_format_id`, `srm_type`, `srm_format`, `srm_currency`) VALUES ('nu59e28f061a779da', 'Number', '$ 1,000.00', '[\"$\",\",\",\".\",\"2\"]')
You do not have the required permissions to view the files attached to this post.
-
- Posts: 16
- Joined: Thu Apr 15, 2021 5:27 pm
Re: Format Field as Currency
This is what i have for input formats, I actually created the fifth "Number" type that is basically a copy of the first one, just in case.
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Format Field as Currency
That is really odd. When you create a new object, is the dropdown also empty?
-
- Posts: 16
- Joined: Thu Apr 15, 2021 5:27 pm
Re: Format Field as Currency
Yes its still empy.
To clarify I went to Setup->Objects->Add
Then I clicked on the Input tab and selected nuNumber for the Input Type (and class).
To clarify I went to Setup->Objects->Add
Then I clicked on the Input tab and selected nuNumber for the Input Type (and class).
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Format Field as Currency
Can you verify that the SQL is there? Double-Click on Format, switch to the tab "Select".
You do not have the required permissions to view the files attached to this post.
-
- Posts: 16
- Joined: Thu Apr 15, 2021 5:27 pm
Re: Format Field as Currency
Yes its there, I checked on a newly created one and on an existing one.
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Format Field as Currency
Could you dump your db and send it to me? Then I can check whether I am also experiencing the issue.