Hi:
This is very strange. The FGRID works fine when I choose Format = Applet but
when I choose Format = HTML and I don't choose anything on the GRID and
press submit button the following error returns!
The cfgridupdate tag cannot find the grid named MyGrid When I choose a grid
cell and edit it and then press submit button no error occurs and the
CFgridupdate works just fine but when I click outside of the grid or edit
nothing in the page and I press the submit button the error returns.
Strange because I have no such a problem when I choose applet. Is this a CF8
bug or I have to set something and I don't.

the page is not complicated at all. It is the simple grid code:

<!--- two simple queries --->
    <cfquery name="UsersGrid" datasource="#Request.DSN#">
    SELECT *
    FROM Tbl_Users</cfquery>

    <cfquery name="rstest" datasource="#Request.DSN#">
    SELECT *
    FROM Tbl_City
    </cfquery>

        <!---cfgridupdate code  --->
        <cfif StructKeyExists(Form, 'Submit')>
        <cfgridupdate datasource="#Request.DSN#"
        grid="MyGrid"
        tableName="Tbl_Users">
        </cfif>

        <!---the form and the grid  --->
        <cfform  name="GridForm" >
        <cfgrid
        name="MyGrid"
        autowidth="yes"
        format="html"
        query="UsersGrid"
        SELECTMODE="EDIT"
        DELETE="Yes"
        insert="yes">

<!---one grid as an ID which is hidden --->
               <cfgridcolumn name="UserID"
                display="No">

<!---one grid to edit --->
              <cfgridcolumn
              name="FistName"
              header="Fist Name">

       </cfgrid>
<!---the end of the grid --->

<!---the submit button --->
<input type="submit" name="Submit" value="Process">

      </cfform>
<!---here is the end of the page--->


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301986
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to