Page 2 of 2

Re: Subform with specific numbers of records

Posted: Sun Apr 05, 2020 6:17 pm
by gerese
Kev1n ,

Work now ...
Sbform30.jpg


but ... after save the entire form I have this
Sbform40.jpg
If I continue to add records I have this
Sbform50.jpg


Thanks .

Re: Subform with specific numbers of records

Posted: Sun Apr 05, 2020 6:22 pm
by kev1n
Are you calling the function when the form is loaded (in your form's custom code) ?
kev1n wrote: In addition, call subFormLimitNumberOfRows(); when the form is loaded.

Re: Subform with specific numbers of records

Posted: Sun Apr 05, 2020 6:35 pm
by gerese
I forgot ... :? :cry:

Yesssssssss ... work now .
My respects.

Re: Subform with specific numbers of records

Posted: Sun Apr 12, 2020 2:43 am
by admin
gerese,

You should be able to do it like this...

https://wiki.nubuilder.cloud/ ... ustom_Code


Steven

Re: Subform with specific numbers of records

Posted: Mon Apr 13, 2020 2:31 pm
by kev1n
admin wrote:gerese,

You should be able to do it like this...

https://wiki.nubuilder.cloud/ ... ustom_Code


Steven
I think when the form is loaded, a new line is added nevertheless (because beforeinsertrow() is not called)

Re: Subform with specific numbers of records

Posted: Mon Apr 13, 2020 10:25 pm
by gerese
admin wrote:gerese,

You should be able to do it like this...

https://wiki.nubuilder.cloud/ ... ustom_Code


Steven
Hi Steven,
I tested, but after saving the form I can add records in the subform.
All the best.

Re: Subform with specific numbers of records

Posted: Tue Apr 14, 2020 12:54 am
by admin
gerese,

You will need to hide the new row when the Form loads with Javascript...

Code: Select all

var sf = 'item_sf';
$('#' + sf + '010nuRECORD').hide();
Steven

Re: Subform with specific numbers of records

Posted: Tue Apr 14, 2020 8:22 pm
by gerese
Work perfect ... thx Steven
BIG Like !!!

Re: Subform with specific numbers of records

Posted: Wed Apr 15, 2020 12:42 am
by admin
Cool.