Add Comment
ComboBox & DataGrid Tutorial
ColdFusion Tutorial #3
This tutorial covers the basics of dynamically populating a combo box from a query.
Tutorial3.mxml
Bind the data provider of the combo box to the recievedData ( arrayCollection ).Set the display field. I also bound this to a changeable string so we can swap what label to display on the fly by clicking one of the buttons.
The grid is just to show all the data that came back. I use the same data for the grid and the combo box.
Park.cfc
Just a simple query that returns the data.Demo
See this code running!
Download
Download this code as a zip!
Comments
Shouldn't local be var scoped?<cfset var local = structNew() />
Adrian J. Moreno @ Saturday 21 Jun 2008 - 01:40:29 AM
Click button to add a comment
Author
Paul Kukiel