Using <cfgrid> in conjuction with <cfform>.
----------------------------------------
1. You'll need a query
<cfquery name="qEmployees" datasource="#request.DSN#" >
SELECT Userid, FirstName, LastName
FROM Employee
</cfquery>
2. Open your <cfform> tag. I recommend putting a width and a height. After testing on multiple platform,
I've noticed that not putting these 2 attributes will prevent the form to be displayed even though Macromedia
doesn't put the attributes as mandatory.
<cfform format="flash" width="500" height="600">
3. Creating the grid to select users. There's a lot of possibilites here. Update, delete, etc.
<!--- SECTION TO CHOOSE EMPLOYEE --->
<!--- Only thing you gotta remember here is the name of your grid, wich is grid in this example --->
<cfgrid name="grid" selectmode="single" query="qEmployees" width="450">
<cfgridcolumn name="FirstName" display="yes">
<cfgridcolumn name="LastName" display="yes">
<cfgridcolumn name="Userid" display="no">
</cfgrid>
4. Binding the data.
<!--- this is where I bind my grid to my output/display --->
<!--- {SourceName.selectectedItem.ColumnName} --->
<!--- example: grid.selectedItem.FirstName --->
<!--- Notice that Userid is being displayed here, but it's not being displayed in the grid --->
<cfformitem type="html" bind="<b>{grid.selectedItem.Userid}</b> = {grid.selectedItem.FirstName} {grid.selectedItem.LastName}" />
</cfform>
The binding statement might be different depenfind on the source it came from (cftext, cftree, etc.)
For more reference, look at this.
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001396.htm#126129
Some issues I've had is "case sensitivity" is some part of the form.
Like in the binding statement, if you type selecteditem (lower case i), your form, shouldn't show.
Make sure it's capital and it will work.
The flash forms are a cool feature in CF MX 7, but I think it's a little unstable. I'm having all sorts
of problems with the flashpapers also. Perhaps they should of tested a little more before putting out
the new version.