[quote="ajb":137o521n]Hi,
I think that your question is clear.
General idea is to make a form by hand, then on submit, create records.
It could look like this (code in body or some method called in body of Module_0.php file):
$rs = new Custom_Mod_Recordset();
$f = $this->init_module('Libs/QuickForm');
// add input to choose number
$f->addElement('text', 'count', __('Count'));
$f->addRule('count', __('Only integer numbers are allowed.'), 'regex', '/^[0-9]*$/');
// or create a select with preset number
// add any fields with default values
$f->addElement( ... );
if ($f->validate() && $f->exportValue('submited')) {
$values = $f->exportValues();
for ($i = 0; $i < $values['count']; $i++) {
// grab values and create as many records as user requests
$rs->new_record( ... );
}
}
$f->display_as_column(); // styled display
// $f->display_as_row(); // show in row like filters
// $this->display_module($f); // for generic form display
Of course you have to adjust code for your needs.
Please find addElement occurencies to get the idea what can be done. (Esp. in
modules/Utils/RecordBrowser/RecordBrowserCommon_0.php you'll find default RB fields)
Regards,
Adam[/quote:137o521n]
It's a shame to say, but I stucked. To this moment I've managed to create one input field which give me nothing. I'm feeling like walking in a dark. Maybe sometimes you'll have time to give example of script. I'm afraid that I cannot cope with syntax