• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Updating Multiple Rows

New Here ,
May 10, 2006 May 10, 2006

Copy link to clipboard

Copied



I have a form that returns a query with several rows and columns to a cfform. I would like the ability to have the user update a quantity field on any or all of the rows and then hit an update button to update them. I can do them separately by putting an update button on each row, but I would like to eliminate the need to go back and forth between screens to update quantity values.

Any ideas? I am at a loss right now.

Thanks,

Wendy
TOPICS
Advanced techniques

Views

565

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 10, 2006 May 10, 2006

Copy link to clipboard

Copied

Did you try to use cfgrid and cfgridupdate tags?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 10, 2006 May 10, 2006

Copy link to clipboard

Copied

In your form, append something to the end of the field names to identify the record. Your fields would then have names like
abc1, abc2, abc3, def1, def2, def3, etc

When you process the page, you do something like this to get the values
<cfoutput>
<cfloop from = "1" to = "3" index = "ii">
#form.abc[ii]#
or something like that.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 10, 2006 May 10, 2006

Copy link to clipboard

Copied

Like said above, cfgrid is now set up to do these types of operations, have a look in the documentation, I think you'll like.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 11, 2006 May 11, 2006

Copy link to clipboard

Copied

The problem with cfgrid is the fact it is a java applet.

--
Bryan Ashcraft (remove brain to reply)
Web Application Developer
Wright Medical Technologies, Inc.
=============================
Macromedia Certified Dreamweaver Developer
Adobe Community Expert (DW) :: http://www.adobe.com/communities/experts/


"furious70" <webforumsuser@macromedia.com> wrote in message
news:e3tkpm$oru$1@forums.macromedia.com...
> Like said above, cfgrid is now set up to do these types of operations,
> have a look in the documentation, I think you'll like.


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 11, 2006 May 11, 2006

Copy link to clipboard

Copied

looks like in the livedocs there's a bug a year old where it doesn't work with a flash form, but it's supposed to. Didn't dig around to see if that was fixed in 7.0.1

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 16, 2006 May 16, 2006

Copy link to clipboard

Copied

LATEST
I needed to do this some time ago - here's a good tutorial http://tutorial214.easycfm.com/

The only thing I changed is that I used the FORM structure to read the values instead of EVALUATE - which is know to increase overhead like so -
<cfset new_value = #Form["old_valuer" & count]#>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation