Welcome to the nuBuilder Forums!

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

Is a not deletable subform not rewritable?

Post Reply
flsd
Posts: 32
Joined: Tue Jul 03, 2012 6:50 pm

Is a not deletable subform not rewritable?

Unread post by flsd »

Steven,

In a subform (deletable=no), If I change a field value in one row and save, a new one blank record is added into the subfrom. If I change a field value in two rows and save, two blank records are added into the subfrom, and so on. Also, all new values in the rows are not saved. If the subform becomes (deletable=yes) there is no problem...

Is it possible to make changes without new blank records to be added?

Thanks for your time,
flsd
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Is a not deletable subform not rewritable?

Unread post by admin »

flsd,
Is it possible to make changes without new blank records to be added?
You can set blank rows to zero.
all new values in the rows are not saved.
Are any getting saved?

Steven
flsd
Posts: 32
Joined: Tue Jul 03, 2012 6:50 pm

Re: Is a not deletable subform not rewritable?

Unread post by flsd »

Steven

To add or delete lines in the subform works fine but all changes to existing ones disappear.

flsd
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Is a not deletable subform not rewritable?

Unread post by admin »

flsd,

Does it happen with other subforms you have? - can you give that a go?

(I have no idea)

Steven
flsd
Posts: 32
Joined: Tue Jul 03, 2012 6:50 pm

Re: Is a not deletable subform not rewritable?

Unread post by flsd »

Steven,

I think, it's also happens in 'GL-Transactions' in 'samplenufinancial' database.

flsd
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Is a not deletable subform not rewritable?

Unread post by admin »

flsd,

In 'GL-Transactions' values get copied to a hidden field.

I don't think its the same thing.

(I don't know what to say)

Try to break other subforms.

Steven
zazzium
Posts: 84
Joined: Mon Jul 04, 2011 12:52 am

Re: Is a not deletable subform not rewritable?

Unread post by zazzium »

flsd,
try to set deletable=yes, and hide delete checkboxes

custom javascript:

Code: Select all

function nuLoadThis() {
    var subform_name = "subform_name";
    var sub_value = Array();
    sub_value     = nuSubformRowArray(subform_name);     
    for(var i = 0 ; i < sub_value.length; i++)
    {      
        $('#row'+sub_value[i]).hide();
    }
}
..however the "Delete" text remains in subform
Post Reply