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

Checkbox Multiple Deletes

Participant ,
Apr 28, 2008 Apr 28, 2008
I use the following code to display display all line items from a query, and put in checkboxes for each line item, so that if the box is checked, that line item will be deleted :

<cfoutput query="qry">
<tr>
<td align="center"><input type="checkbox" name="del_#urdn_number#_#urdn_line_item#" value="Yes"></td>
<td align="center">#qry.line_item#</td>
<td align="center">#qry.action#</td>
<td align="center">#qry.quantity#</td>

the action page :

<cfloop index="i" list="#form.fieldnames#" delimiters=",">

<cfif left(i,4) is "del/">
<cfset select_urdn_number = listgetat(i, 2, "/")>
<cfset select_urdn_line_item = listlast(i, "/")>

What I need to do now is add a input text field, to each line item displayed, for the user to enter comments explaining why they watn to delete that line item. I then need to insert this comment that corresonds to each line item into a table.

Since this comments input text is not part of the query, how do I associate it with each line item ?
182
Translate
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 02, 2008 May 02, 2008
LATEST
you associate it with an ID?
Translate
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