numeric values

34 views
Skip to first unread message

Cato Nano

unread,
Jan 28, 2018, 5:43:28 AM1/28/18
to tryton
In my numeric calculated fields I should record 4 decimal digits but I should show only 2 decimal digits in my views

How can I achieve that ?

Thanks

Cédric Krier

unread,
Jan 29, 2018, 4:35:08 AM1/29/18
to tryton
On 2018-01-28 02:43, Cato Nano wrote:
> In my numeric calculated fields I should record 4 decimal digits but I should show only 2 decimal digits in my views
>
> How can I achieve that ?

You can not display a field with a different value than its value
otherwise the client will change it and save this new value to the
server.

Indeed what you want is to show another field which has its value
derived from the original one. This can be done using a Function field.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Cato Nano

unread,
Jan 29, 2018, 2:30:20 PM1/29/18
to tryton
Il giorno lunedì 29 gennaio 2018 10:35:08 UTC+1, Cédric Krier ha scritto:
> On 2018-01-28 02:43, Cato Nano wrote:
> > In my numeric calculated fields I should record 4 decimal digits but I should show only 2 decimal digits in my views
> >
> > How can I achieve that ?
>
> You can not display a field with a different value than its value
> otherwise the client will change it and save this new value to the
> server.
>
> Indeed what you want is to show another field which has its value
> derived from the original one. This can be done using a Function field.
>

interesting. Thanks. I' ll try tomorrow

Cato Nano

unread,
Feb 12, 2018, 4:22:55 AM2/12/18
to tryton
well, it took me a few more days

But I followed your suggestion

Thanks
Reply all
Reply to author
Forward
0 new messages