Welcome to the nuBuilder Forums!

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

Deleting record from subform

Locked
Arunas
Posts: 21
Joined: Sat Feb 07, 2015 11:19 pm

Deleting record from subform

Unread post 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
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Deleting record from subform

Unread post 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
Arunas
Posts: 21
Joined: Sat Feb 07, 2015 11:19 pm

Re: Deleting record from subform

Unread post 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.
Arunas
Posts: 21
Joined: Sat Feb 07, 2015 11:19 pm

Re: Deleting record from subform

Unread post by Arunas »

Need change nueditform.js. Thank you Steven, it working!
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Deleting record from subform

Unread post by admin »

.
Locked