Back
newMultiple
Editing, Updating and Creating Records
newMultiple
Allow new records to be created in grid
Default:
We preallocate a number of new record forms as hidden forms at the top (or bottom) of the grid when we generate a web page. Clicking on the new icon will cause one of the preallocated forms to be revealed. The new form appears in the grid, and you can create multiple new records by clicking on the New icon, without having to click on Save.

Set this property to the number of new records that are preallocated. Make sure that a primary key is defined for the applet (keyCol property) and editMultiple is set:

$lens->editMultiple = true;
$lens->newMultiple = 8;

By default, the forms are created at the top of the grid. New in 4.9.11 is the ability to create the empty records at the bottom of the grid. To do so, set newMultiple to a negative number:

$lens->newMultiple = -8;

Warning: Setting this property to a high value dramatically increases the size of the web page.

Syntax
$lens->newMultiple = 10; # preallocate 10 new record forms at the top of the grid

 Basic:Yes  Advanced/Enterprise:Yes  DynamicEdit:Yes   [Version 4.1]