Page 1 of 1

Is a not deletable subform not rewritable?

Posted: Tue Sep 04, 2012 11:48 am
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

Re: Is a not deletable subform not rewritable?

Posted: Thu Sep 06, 2012 5:49 am
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

Re: Is a not deletable subform not rewritable?

Posted: Thu Sep 06, 2012 6:45 am
by flsd
Steven

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

flsd

Re: Is a not deletable subform not rewritable?

Posted: Thu Sep 06, 2012 7:55 am
by admin
flsd,

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

(I have no idea)

Steven

Re: Is a not deletable subform not rewritable?

Posted: Thu Sep 06, 2012 8:21 am
by flsd
Steven,

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

flsd

Re: Is a not deletable subform not rewritable?

Posted: Fri Sep 07, 2012 8:40 am
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

Re: Is a not deletable subform not rewritable?

Posted: Fri Sep 07, 2012 2:29 pm
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