Anyone able to edit a cfgrid in html format? It works fine if it's a java applet, but it quits working when I change the format to html. I submitted the bug to Adobe a few months ago, but I've received no response from them.
What version of ColdFusion are you running? Can you provide some code?
Are you usign this grid in a form with enctype="multipart/form-data"?
It appears to be submitting the form name twice even though there is only one row in the cfgrid. It is also passing two of the cfgridcolumns twice, but the edited value only once.
<cfgrid name = "PesticideGrid"
striperows = "yes"
query = "getit"
insert = "yes"
delete = "yes"
colHeaderBold = "Yes"
selectMode = "EDIT"
insertButton = "Insert a Row" deleteButton = "Delete selected row" >
<cfgridcolumn name="cppestpesticideID" display="yes">
<cfgridcolumn name="description" header="Description" width="900" display="yes">
<cfgridcolumn name="pesticideid" header="Product" display="yes" width="250">
<cfinput type="submit" name="pesticidesEntered" value="Save Chemical Comments">
I added my code for you to view. I've tried it many different ways, but it only works when format is a java applet and not html. Unfortunately, there are security issues that are preventing me to use it as a java applet.
I think this is related to Bug#3842284 - Submitting form with file and CFGRID - Exception in The submitted cfgrid form field is...
Can you check this and see if you get the same results if you use the enctype="multipart/form-data".
Yes, I receive the error with and without enctype="multipart/form-data"
A quick test myself and I get the same behaviour. Unfortunately it is related to the bug mentioned and you may not be able to do much until they resolve it.
Seems to work when the format is set to flash though.
Thank you for helping me. I appreciate your time.