Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [TheStone] Problem with adding multiple records to a table

Quote Reply
Re: [TheStone] Problem with adding multiple records to a table In reply to
Hi,

I was wondering if I could add a customized template while adding multiple rows to the table. I mean customized in the sense when i add add one record.. I can have the form looke like the way I want it to look.. I can make any changes .. is it possible when adding multiple rows to the table.

For example: In the add_form.. it is like this

<table border="<%if m > 0 and m < 25%>0<%else%>1<%endif%>" cellpadding="0" cellspacing="0" width="65%">
<tr bgcolor="#FFFFFF" align="center" valign="center">
<td> <%if sdo%><!--generate a form for related database--> <%include custom_po_input1.html%>
<%else%> <%if m > 0 and m < 25%> <!--Add multipe rows--> <% Dbsql::HTML::generate_add_multi_form%>
<input name=m type=hidden value="<%m%>">
<%else%> <%include custom_inputs.html%> <%endif%> <%endif%> </td>

here I include the file "custom_inputs.html" to add one row.. so that it looks like the way I want it to be .. so I was wondering if its possible to do the same while addoing multiple rows.



2. Now If I give m as 25 .. It will give me a form to add 25 rows .. now what if I want to add only 10 rows.. I fill in the information for 10 rows ... and leave the other 15 blank .. how many rows will it add .. 25 or 10 .. Is it possible that I specify m as 25 and add only 10 rows .. is it possible to do that .

thanks,

Sandeep
Subject Author Views Date
Thread Problem with adding multiple records to a table sdsouza 3579 Oct 29, 2003, 10:57 AM
Thread Re: [sdsouza] Problem with adding multiple records to a table
604 3449 Oct 29, 2003, 3:04 PM
Post Re: [TheStone] Problem with adding multiple records to a table
sdsouza 3453 Oct 29, 2003, 3:30 PM