Ask a Question related to Macromedia ColdFusion, Design and Development.
-
Anj01 #1
How to populate drop down list from one field withdelimiters
Hello
How can we populate a drop down dynamically from the database by splitting one
row of data .
I have data in a field which is seperated by delimiters
example Shirt, TShirt, Pants as one field data in the DB
I need to display them individually in a drop down list
How can this be done
Thanks
Anj01 Guest
-
populate list
is it possible to populate the list automatically after finish recording the video? in another word, is there anyway i can call the flv files saved... -
Dynamic Drop Down and To Populate a Text Field
Hello, I have a db with urltitle and ulrlink one is for title the other its hyperlink. I have a dynamic list hooked up to title, but I want the url... -
How to populate the form fields from another drop down list
Hello, I would like to populate form fields from one drop down list in the same page. The drop down list's value is from SQL database. When... -
dynamically populate drop down menu option value problem
hi I was wondering if anyone can help me out on this.... I have dynamcally populated a drop down menu with data from an access database using... -
Access auto fill/populate field with list of different values
I am creating a database with the following fields in the table ID - ID Number for person LAB - Lab Name LABDT - Lab date LABVAL - Value of the... -
TA-Selene #2
Re: How to populate drop down list from one field withdelimiters
You just loop over the list to create the options:
<select name="MyField">
<cfloop list="#DataField#" index="ItemField">
<cfoutput><option value="#ItemField#">#ItemField#</option></cfoutput>
</cfloop>
<select>
TA-Selene Guest
-
Anj01 #3
Re: How to populate drop down list from one field withdelimiters
thanks
but the datafield has data in 1 cell itself seperated by ,
how do i populate that into the drop down. The method you have specified will
put the data in drop down list if it in different rows
thanks
Anj01 Guest
-
TA-Selene #4
Re: How to populate drop down list from one field withdelimiters
Not really. If you replace DataField with the name of your column, this code will loop over the contents (which is really a list) and create an option for each element of that list.
TA-Selene Guest
-
Anj01 #5
Re: How to populate drop down list from one field withdelimiters
Thanks a lot Selene it works gr8
Anj01 Guest



Reply With Quote

