Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Don't work calc object event

Questions related to using nuBuilder Forte.
Post Reply
Arunas
Posts: 21
Joined: Sat Feb 07, 2015 11:19 pm

Don't work calc object event

Unread post by Arunas »

Hi

I have Cacl object and Custom Code Event onchange. Then change value, don't work Java script: nuMessage('Text');
Is there another way to execute a script to change the value of this object?

Arunas
kev1n
nuBuilder Team
Posts: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:

Re: Don't work calc object event

Unread post by kev1n »

Hi,

Declare a function called nuCalculated() in your form's Custom Code:

Code: Select all

function nuCalculated(formula, value, formattedValue) {
  nuMessage('Text');
}
Arunas
Posts: 21
Joined: Sat Feb 07, 2015 11:19 pm

Re: Don't work calc object event

Unread post by Arunas »

This you code works.
But don't work, when replace nuMessage('Text') to my function sum_to_word($('#inv_grand_total').val()), which converts a number into text.
This functions works, when write into Input objects (Demo program fields ite_price and ite_units) Event onchange. Problem, when selecting a subform entry for deletion: the value of the Calc objects inv_grand_total changes, but function does not work in this object Event onchange.

So, in the future could Nubuilder Events maybe work with Calc objects too?
Post Reply