I'm new to using CFGRID and have a flash form that allows users to add, edit 
and delete rows from the grid. It works great except the page functions won't 
display.  The code is below (based on an example in Adobe Livedocs) - thanks 
for any help I can get.

<!--- If the gridEntered form field exists, the form was submitted. Perform 
gridupdate. --->
<cfif IsDefined("form.gridEntered") is True>
    <cfgridupdate grid = "tipGrid" dataSource = "#dsn#" Keyonly="true"
        tableName = "Tooltips">
 </cfif>

<cfquery datasource="#dsn#" name="getToolTips">
Select * from dbo.Tooltips
</cfquery>


<cfform format="flash" width="800" height="600">

<cfgrid name="tipGrid" 
        query="getToolTips" 
        insert="Yes" 
        delete="Yes" 
        font="Tahoma" 
        rowHeaders="No"  
        colHeaderBold="Yes" 
        selectMode="EDIT" 
        pagesize="5" 
        insertButton="Insert a Row" 
        deleteButton="Delete Selected Row"  
        >
     <cfgridcolumn name="tipID" display="yes" width="40" header="ID">
     <cfgridcolumn name="pageName" header="Page Name">
     <cfgridcolumn name="formName" header="Form Name">
         <cfgridcolumn name="fieldName" header="Field Name">
         <cfgridcolumn name="tipText" header="Tip Text" width="400">
</cfgrid>
<br>
<cfinput type="submit" name="gridEntered" value="Submit Changes">
<br />  <br />
<cfformitem type="html" bind="<b>Tip {tipGrid.selectedItem.tipID} text</b> = 
{tipGrid.selectedItem.tipText}" />
</cfform>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

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

Reply via email to