This topic is locked

Can you add multiple records from one add page?

7/13/2007 3:24:14 PM
PHPRunner General questions
R
run4sbc author

I was wondering if there was any way to add multiple records at one time. I want to add 4 lines of data at one time instead of one...it would save the User alot of time on my end and it would get data entry done quicker. If anyone has found a way to do this and could share it would be greatly appreciated.
Thanks
Cody

J
Jane 7/16/2007

Cody,
PHPRunner can not add more than one records on single add page.

You can implement this manually using events.

Use Insert a new record into another table action as a sample.

C
ccuser 7/24/2007

Hi,

I have a somewhat related issue:
Using an AddOnLoad event if I were to dynamically add additional text input fields how would I then retrieve the values in the BeforeAdd event?
The AddOnLoad would contain the following but is there then a way to acces input i :
echo '<tr>

<td width="150px">'.$row['Name'].'</td>

<td align=center><input type="text" id="input'.$i.'" value="input'.$i.'" name="input'.$i.'" /><td>

</tr>
On a related note is there any way to have one drop down list field auto postback its value after selection so that the onLoad function can access that value to generate i number of text fields?
Thanks for all your help.

admin 7/24/2007

Check PHPRunner 4.1 beta where you can add multiple records right on the list page:

http://www.asprunner.com/forums/index.php?showtopic=5831