This might soun crazy but here it is anyway.
<cfquery name="items" ...>
select *
from items
</cfquery>
<cfoutput query="items">
<cfset count=#count# + "1">
<cfset formname="name#count#">
<cfset colx="colx#count#">
<cfform name="#formname#" action="itemsAction.cfm?...>
<table ...>
...
<cfinput name="#colx#" ...>
<input type="sumit" name="sumitx" value=" Sumit ">
...
</table>
</cfform>
</cfoutput>
The idea is to be able to display all rows within a table and allow users to edit any row and sumit change for that row alone.
Also, be able to delete that row ONLY. So, the row might look like this:
ITEMCODE ITEM DESCRIPTION BLA BLA BLA Update Delete
The links or buttoms Update/Delete should trigger the action page or function(s) responsible for such deeds ...
The 1,000,000.00 questions are:
A) Am I off track? Above approach would be overkill ...
B) Is this best done using arrays? I am not at that level yet 8-(
C) Does anyown know of some tutorial that shows how somethign like this can be done?
Thank you all in advance!
josel If you have the knowledge, consult and educate those who need it! - Jose Lerebours
<cfquery name="items" ...>
select *
from items
</cfquery>
<cfoutput query="items">
<cfset count=#count# + "1">
<cfset formname="name#count#">
<cfset colx="colx#count#">
<cfform name="#formname#" action="itemsAction.cfm?...>
<table ...>
...
<cfinput name="#colx#" ...>
<input type="sumit" name="sumitx" value=" Sumit ">
...
</table>
</cfform>
</cfoutput>
The idea is to be able to display all rows within a table and allow users to edit any row and sumit change for that row alone.
Also, be able to delete that row ONLY. So, the row might look like this:
ITEMCODE ITEM DESCRIPTION BLA BLA BLA Update Delete
The links or buttoms Update/Delete should trigger the action page or function(s) responsible for such deeds ...
The 1,000,000.00 questions are:
A) Am I off track? Above approach would be overkill ...
B) Is this best done using arrays? I am not at that level yet 8-(
C) Does anyown know of some tutorial that shows how somethign like this can be done?
Thank you all in advance!
josel If you have the knowledge, consult and educate those who need it! - Jose Lerebours