Page 1 of 1

Deleting record from subform

Posted: Tue Feb 17, 2015 3:10 pm
by Arunas
Hi.

I'm doing Invoice. Using as an example function zzz_calc_invoice(). Everything works, except, when I delete subform record, not updating forms zinv_total record. I don't know, where to put the function zzz_calc_invoice(), that would be fine after deleting subform records.

Arunas

Re: Deleting record from subform

Posted: Wed Feb 18, 2015 12:34 am
by admin
Arunas,

I have made a change to nuBuilderPro that will allow you to add events to a Subform's Delete Checkbox.

http://wiki.nubuilder.net/index.php/Add ... Events_Tab

Steven

Re: Deleting record from subform

Posted: Wed Feb 18, 2015 8:52 am
by Arunas
function alert_m()
{
alert("I am an alert box!");
}

In subform field (Type Text) Events "onchange" add this function. Then change field record, work.
In subform (Type SubForm) Events "onchange" add this function. Then delete row of records, don't work.

Re: Deleting record from subform

Posted: Wed Feb 18, 2015 9:39 am
by Arunas
Need change nueditform.js. Thank you Steven, it working!

Re: Deleting record from subform

Posted: Wed Feb 18, 2015 10:15 pm
by admin
.