Hi,
Is there a way to limit the number of rows in a subform?
Thanks!
Welcome to the nuBuilder forums!
Please register and login to view forums and other content only available to registered users.
Please register and login to view forums and other content only available to registered users.
How can I limit subform rows to 10?
-
- Posts: 177
- Joined: Tue Nov 15, 2011 2:24 pm
-
- Site Admin
- Posts: 2781
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 1 time
Re: How can I limit subform rows to 10?
Rui,
This is a big hack but it works.
Steven
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);
-
- Posts: 177
- Joined: Tue Nov 15, 2011 2:24 pm