Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

calc-function (?)

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

calc-function (?)

Unread post 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 ) 
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: calc-function (?)

Unread post 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
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: calc-function (?)

Unread post 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
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: calc-function (?)

Unread post 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');
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: calc-function (?)

Unread post 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!
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: calc-function (?)

Unread post 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?
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: calc-function (?)

Unread post by kev1n »

kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: calc-function (?)

Unread post by kknm »

Thanks !
Post Reply