Page 1 of 1

decimal field, comma vs period

Posted: Fri Feb 23, 2018 6:41 am
by danpif
good morning,
prodoundjs installed on linux pc, is it possible to indicate the use of the decimal comma instead of the decimal period ?

thanks!
danilo

Re: decimal field, comma vs period

Posted: Fri Feb 23, 2018 11:11 am
by Emily
Hi Danilo,

Currently, there is no way to change the decimal format for Profound.js to use a comma instead of a period. However, our developers are currently working on a fix for this that should be available in the next release of Profound.js. In the next release, the decimal format will either come from the decimal format that is set for the Genie job (if you're running inside of Genie), or you will be able to configure the decimal format in the config.js file of your Profound.js instance and this format will be used if you are running outside of Genie.

I hope that this helps! Please let me know if you have any other questions about this.

--Emily

Re: decimal field, comma vs period

Posted: Wed Oct 24, 2018 6:06 pm
by danpif
Good morning,
any news?

thanks
danilo

Re: decimal field, comma vs period

Posted: Wed Oct 24, 2018 6:17 pm
by Scott Klement
Do they not work? Emily said in her earlier post (which was from February) that this would be available in the next release. We have had 16 releases of Profound.js since she posted that. So, unless she was mistaken, this has been available for many releases already.

did you try it?

Re: decimal field, comma vs period

Posted: Wed Oct 24, 2018 8:49 pm
by danpif
in config.js (as esplained by Emily) i have not found any directive for the conversion comma-period

thanks
danilo

Re: decimal field, comma vs period

Posted: Mon Oct 29, 2018 11:34 am
by Emily
Hi Danilo,

My apologies, it seems as though this configuration option was not documented properly.

Please see the following documentation page: http://www.profoundlogic.com/docs/displ ... imalFormat. This should help with what you're wanting to accomplish.

If you aren't familiar with making changes to the config.js file, there is more information about this in our documentation as well: http://www.profoundlogic.com/docs/displ ... ation+File.

Re: decimal field, comma vs period

Posted: Tue Oct 30, 2018 8:35 am
by danpif
Hi Emily,

I added the "decimalFormat" entry in config.js, But seems do anything.
Example: input field with length 10 and 2 decimal with value 1234.12 - both with and without the entry "decimalFormat" the result is always with the period ...

I run profoundjs on windows machine and (for test) without any connection to IBMi

thanks in advance
Danilo

Re: decimal field, comma vs period

Posted: Tue Nov 13, 2018 10:24 pm
by danpif
Hi,

I found a work around:
in designer, i make a form with onLoad:
pui.appJob.decimalFormat = 'J';
pui.click ();

in js, after pjs.defineDisplay ('wrkstn', ...)
wrkstn.form.execute ();

now decimalFormat is in european mode ( , for decimal)
I hope that the possibility of using config.js in the same way is fixed.

regards
Danilo