Page 1 of 1

calc-function (?)

Posted: Wed May 27, 2020 9:30 am
by kknm
I can’t understand the work of the if function, I saw an example on the forum, but it doesn’t work for me. Moreover, with an error in calc, all added functions are disabled in setup - header
calc.png

Code: Select all

 ( nuTotal('pro_num') =  = 1 )  ?  ( nuTotal('pro_end') - nuTotal('pro_beg') )  :  ( 0 ) 

Re: calc-function (?)

Posted: Wed May 27, 2020 9:46 am
by kev1n
Hi,

Is there a space too much?

( nuTotal('pro_num') == 1 ) ? ( nuTotal('pro_end') - nuTotal('pro_beg') ) : ( 0 )

What do you mean by that?
kknm wrote: all added functions are disabled in setup - header

Re: calc-function (?)

Posted: Wed May 27, 2020 10:01 am
by kknm
kev1n wrote:Hi,

Is there a space too much?

( nuTotal('pro_num') == 1 ) ? ( nuTotal('pro_end') - nuTotal('pro_beg') ) : ( 0 )

What do you mean by that?
kknm wrote: all added functions are disabled in setup - header
1. How to remove space in calc? I can’t edit it.
2. The headings of the forms transferred by the function 'labels_on_top' to setup -header, we recently discussed it with you, do not change their position.
calc1.png

Re: calc-function (?)

Posted: Wed May 27, 2020 10:05 am
by kev1n
Open the developer console and run this code to enable the calc field:

Code: Select all

 $("#sob_calc_formula").prop("readonly", false).removeClass('nuReadonly');

Re: calc-function (?)

Posted: Wed May 27, 2020 10:06 am
by kev1n
kknm wrote: 2. The headings of the forms transferred by the function 'labels_on_top' to setup -header, we recently discussed it with you, do not change their position.
calc1.png
This topic is about "calc-function". Please do not ask different questions that are not related in the same topic. Thanks!

Re: calc-function (?)

Posted: Thu May 28, 2020 8:29 am
by kknm
kev1n wrote:Open the developer console and run this code to enable the calc field:

Code: Select all

 $("#sob_calc_formula").prop("readonly", false).removeClass('nuReadonly');
Is it possible to do this on an ongoing basis without resorting to this trick?

Re: calc-function (?)

Posted: Thu May 28, 2020 8:33 am
by kev1n

Re: calc-function (?)

Posted: Thu May 28, 2020 8:45 am
by kknm
Thanks !