Skip to main content
Participant
March 19, 2013
Question

CFGRID issue

  • March 19, 2013
  • 1 reply
  • 676 views

I have a simple grid with Cold Fusion 9.0.2

<cfquery datasource="db" name="q1">

          Select 'a', 0

          union

          Select 'b', 0

          union

          Select 'c', 0

          union

          Select 'd', 0

          union

          Select 'e', 0

          union

          Select 'f', 0

  </cfquery>

<cfform name="formgrid" action="customersku_submit.cfm">

    <cfgrid name = "gridname" format="html"

        selectmode="edit"

        font="Tahoma" fontsize="12"

        query = "q1">

    </cfgrid>

    <cfinput type = "submit" name = "submit" value = "Submit">

</cfform>

If I click the number value for a and enter 1 and then click to the number value on field f and press submit it returns the value I changed not as the a but as the f.

structFIELDNAMESSUBMIT,__CFGRID__FORMGRID__GRIDNAMEGRIDNAME.COMPUTED_COLUMN_1

array
1f

GRIDNAME.COMPUTED_COLUMN_2

array
11

GRIDNAME.ORIGINAL.COMPUTED_COLUMN_1

array
1f

GRIDNAME.ORIGINAL.COMPUTED_COLUMN_2

array
10

GRIDNAME.ROWSTATUS.ACTION

array
1U

SUBMITSubmit__CFGRID__FORMGRID__GRIDNAME__CFGRID__EDIT__=2 COMPUTED_COLUMN_1 Y COMPUTED_COLUMN_2 Y 1 U f f 1 0

This topic has been closed for replies.

1 reply

Participant
March 19, 2013

I have confirmed the same behaviour with clean installs of versions 9.0.2 and 10

Inspiring
March 19, 2013

Hi,

     What is your situation, i mean have you find any issue ?

    Can you please explain bit more !!!

Participant
March 19, 2013

On an HTML CFGrid tag there is something wrong with how it keeps track of the changes to the data. If you enter the data and leave the field you are editing by pressing tab or enter the data gets submitted correctly.

If you edit a field then leave that field by clicking another field it shows on the screen as correct but if you submit the form the submitted data says you changed the field you clicked on not the field you changed.