Page 1 of 1

How can I limit subform rows to 10?

Posted: Wed May 06, 2015 12:26 pm
by ruiascensao
Hi,

Is there a way to limit the number of rows in a subform?

Thanks!

Re: How can I limit subform rows to 10?

Posted: Thu May 28, 2015 3:17 am
by admin
Rui,

This is a big hack but it works.

Code: Select all


    var n = '#tttsf';     //-- subform name (make sure you have no other subforms with this name in your application)
    var f = n + '0010_nuRow';
    var c = String(nuSession.addSubformRow);
    var s = c.substr(17,c.length-20) + ";\n\t\t$('" + f + "').css('visibility','hidden');\n}";
    
    eval('nuSession.addSubformRow = function(pthis){' + s);

Steven

Re: How can I limit subform rows to 10?

Posted: Sun Aug 02, 2015 8:31 pm
by ruiascensao
Hi Steven,

Thank you. It works!

Re: How can I limit subform rows to 10?

Posted: Mon Aug 10, 2015 8:01 am
by admin
.