I have a form that has only one line but it is a <cfoutput> tag so it really generates as many rows as the criteria sets. The problem is that when I update the form it updates only one line not every record.
This is the section in the form:
<cfoutput group="de_occupant_name" query="list">
<tr>
<td width="89">
<div align="center">
<input type="Text" name="unit_number"
value="#de_unit_number#" size="10">
</div>
</td>
<td width="303">
<input type="text" name="tenant_name" width="35"
value="#de_occupant_name#" size="45">
</td>
<td width="94">
<div align="center">
<input type="Checkbox" name="vacancy"
value="checkbox" <cfif de_vacant_indicator
eq "V">checked</cfif>>
</div>
</td>
This is the page it goes to after submition:
<cfquery datasource=#datasource# username=#username# password=#password#>
update vacancy set
de_unit_number='#unit_number#',
de_occupant_name='#tenant_name#',
de_vacant_indicator='#vacant#'
where de_property_number=#de_property_number#
</cfquery>
</cfoutput>
</tr>
</cfoutput>
This is the section in the form:
<cfoutput group="de_occupant_name" query="list">
<tr>
<td width="89">
<div align="center">
<input type="Text" name="unit_number"
value="#de_unit_number#" size="10">
</div>
</td>
<td width="303">
<input type="text" name="tenant_name" width="35"
value="#de_occupant_name#" size="45">
</td>
<td width="94">
<div align="center">
<input type="Checkbox" name="vacancy"
value="checkbox" <cfif de_vacant_indicator
eq "V">checked</cfif>>
</div>
</td>
This is the page it goes to after submition:
<cfquery datasource=#datasource# username=#username# password=#password#>
update vacancy set
de_unit_number='#unit_number#',
de_occupant_name='#tenant_name#',
de_vacant_indicator='#vacant#'
where de_property_number=#de_property_number#
</cfquery>
</cfoutput>
</tr>
</cfoutput>