Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
cannyladUK #1
CF Data Grid Binding- New to this CF Stuff
I amdrunning the demos from
[url]http://www.macromedia.com/software/coldfusion/demos/[/url] and the demo for
Coldfusion DataGrid and Binding is doing my head in. I can create the first
couple of the demo flash forms no probs and I found it most enjoyable however
changing the event to single or edit was kewl......However when I come to the
last form I copy the code from the demo vidoe and nothiong happens ??? I get
the following error messages
2 Errors found.
Error /CFIDE/gettingstarted/tutorial/grid.mxml:198 .
and
Error /CFIDE/gettingstarted/tutorial/grid.mxml:198
The statement 'grid' is incomplete.
Being new to CF I have racked my brains and looked and relooked and double
checked the code on the demo video. What am I doing wrong????:confused;
<html>
<head>
<title>Coldfusion Flash Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<cfquery name="artists" datasource="cfartgallery">
SELECT firstName, lastName, city
FROM Artists
</cfquery>
<cfform format="flash" width="500">
<cfgrid name="grid" query="artists"
selectmode="single">
<cfgridcolumn name="firstName">
<cfgridcolumn name="lastName">
<cfgridcolumn name="city">
</cfgrid>
<cfinput type="text" name="firstName" label= "First Name"
bind="{grid.selectionItem.firstName}"
onChange="grid.dataProvider.editField{grid.selecte dIndex, 'firstName',
firstName.text);">
</cfform>
</body>
</html>
cannyladUK Guest
-
trying to create data grid on the fly, with templated columns, and then updating all rows in the grid
Hi, Please help, I'm trying to create data grid on the fly, with templated columns, for editing, and then updating all rows in the grid on one... -
Data grid loses binding
I have three sets of xml connectors, datasets and datagrids in the same document each feeding off three separate xml documents. I have placed three... -
Binding from grid to cfselect
This is what I can do: Select a row from the Grid and bind to to several input boxes. I have select boxes that change the data in the grid (it... -
Complex data binding question, binding child objects of a custom collection.
I have a custom collection of objects, each of which includes a child object called MyUserOpener. In declarative binding, I can bind this property... -
data table binding to grid
We have a data table bound to a datagrid. In the data table, there is a column of type decimal. Since any decimal in this column will always be a... -
mxstu #2
Re: CF Data Grid Binding- New to this CF Stuff
Two things:
1) Use "selectedItem" not selectionItem
2) You have a curly brace instead of an open parenthesis in the onChange code
<cfinput type="text" name="firstName" label= "First Name"
bind="{grid.selectedItem.firstName}"
onChange="grid.dataProvider.editField(grid.selecte dIndex, 'firstName',
firstName.text);">
mxstu Guest
-
cannyladUK #3
Re: CF Data Grid Binding- New to this CF Stuff
I thank you for the feedback. Much oblidged
cannyladUK Guest
-



Reply With Quote

