Save All button for dynamic form
Hi All,
I haven't used coldfusion for a while and I am a little stuck getting my head around a problem I have occured. I have taken a project over from one of my colleagues so the coding is not my own. See code below....
<cfif isdefined("btnSubmit")>
<!--- DO INDIVIDUAL UPDATE CODE HERE --->
</cfif>
<cfoutput query="getList">
<cfform name="fmUpdList99_#applicationid#" action="list99.cfm">
Clear: <cfinput type="Radio" name="result" checked="No" value="CLEAR">
Match: <cfinput type="Radio" name="result" checked="No" value="MATCH">
N/A: <cfinput type="Radio" name="result" checked="No" value="NA">
<input type="submit" name="btnSubmit" value="Save" />
</cfform>
</cfoutput>
Now this works perfectly if I want to click on a submit button per row and save each row individually.... But what the user wants is the option to have a save all button which loops through each row and does the update code for all rows (rather than individually) depending on what is selected in the radio buttons.
Sorry if I haven't described my problem to well, its just I haven't used CF for a while now and trying my best to get back into it.
All apprciate all the help you can give.
Thanks,
George
