Add Comment
ComboBox & DataGrid Tutorial
Flex / 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
as i convert to .mxml file to cfm file
i use two comboboxes secondcombobox values are bepended to first combobox selection as it is posible then givem me the one example
gowrikumar @ Tuesday 08 Jul 2008 - 06:21:22 PM
Thanks for the comment Adrian. Yes it should be var scoped
Paul Kukiel @ Wednesday 09 Jul 2008 - 01:48:30 PM
hi;
i have one combobox that,i have binded one data field from database,if i select any one value from combobox,the corresponding value will be displayed on grid kindly update me my query
thangapandyan @ Monday 13 Apr 2009 - 03:28:34 PM
i have one button control,if i click thatbutton, i want to disply the grid value on same page
thangapandyan @ Monday 13 Apr 2009 - 03:30:59 PM
Click button to add a comment
Author
Paul Kukiel