Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
Scooby Doobie Doo #1
How Do I update Multiple Records with One Submit??
Does anyone have a SOLID example of how this works? I've been struggling with
this concept all day and am not understanding why it won't work. I want to
list output, then alter the output, then update them all at once by clicking
one button, but have not been able to do so. Can Anyone point me to a solid
example? I even bought a book today and it doesn't have this topic covered in
it.
Scooby Doobie Doo Guest
-
update multiple records
I'm trying to to update multiple records with a drop down. My update statment updates all selected records with all selected choices. I get for... -
update multiple records in multiple tables from one form
hello I have been trying to run multiple update queries based on the data entered by user. Brief background: I am fetching data from various... -
Update multiple records using checkboxes
Searched the NG but no luck. Im displaying records from an Access2000 db in a table. The table is within a form and each record(row) has a... -
Update Multiple Records with One submit
SQL 6.5 Database I have a list of registrants and I want to use a check box after each record to show those who attend and then post all with... -
ANN: Update Multiple Records in ASP
I've put together an article and demo on how to batch update records in a recordset: ... -
Scooby Doobie Doo #2
Re: How Do I update Multiple Records with One Submit??
Here's what I have so far, and this is NOT working. I'm using an access
database. <CFQUERY NAME='GETSITES' DATASOURCE='KeyWebData'> select * from
tbl_sites </CFQUERY> <cfset #currentpage# = 'test.cfm'> <cfset #datasrc# =
'datafeed'> <cfif IsDefined('form.SiteList')> <cfoutput query='GETSITES'>
<cfset TheSitename = evaluate('SITENAME_#GETSITES.SITEID#')> <cfset SITEID =
evaluate('SITEID_#GETSITES.SITEID#')> <cfquery datasource='#datasrc#'>
UPDATE TBL_SITES SET SITENAME = '#Form.SiteList#' WHERE SITEID =
#SITEID# </cfquery> </cfoutput> <cflocation
url='#CurrentPage#?update=no'> </cfif> <form
action='<cfoutput>#CurrentPage#</cfoutput>' enctype='multipart/form-data'
method='post'> <table border='0' cellpadding='2' cellspacing='2'>
<cfoutput query='GETSITES' MAXROWS='15'> <tr><td><input
name='SITENAME_#GETSITES.SITEID#' type='text' VALUE='#ucase(SITENAME)#'
size='50'></td></tr> <input name='SITEID_#GETSITES.SITEID#' type='hidden'
value='#GETSITES.SITEID#'> </cfoutput> </table> <input type='hidden'
name='update' value='yes'> <input type='submit' name='Submit' value='Submit'>
</form>
Scooby Doobie Doo Guest
-
Latino #3
Re: How Do I update Multiple Records with One Submit??
There's an example at [url]http://tecito.com[/url]
Latino Guest
-
fhilliard #4
Re: How Do I update Multiple Records with One Submit??
Here's an example:
[url]http://frankhilliard.com/multiplerecords.cfm[/url]
fhilliard Guest
-
Scooby Doobie Doo #5
Re: How Do I update Multiple Records with One Submit??
Thank you Latino and Fhilliard! Both excellent examples and a great help to me. I appreciate your assistance.
Scooby Doobie Doo Guest



Reply With Quote

