• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

values in pick list

New Here ,
Dec 19, 2006 Dec 19, 2006

Copy link to clipboard

Copied

<cfquery name="getValue" datasource="testdata">
select c.colorname, r.relatedcolor, o.relatedobject
from Color.c INNER JOIN SimilarColor s
ON c.colored = s.index_id
INNER JOIN ObjectColor o
ON s.objected = o.index_id
</cfquery>

Color Description:
<select id="ColorDescript" name="ColorDescript">
<cfoutput query="getValue">
<cfset variables.SDNF = "#getValue.colorname##getValue.relatedcolor##getValue.relatedobject#">
<option value="#getValue.SDNF#">#variables.SDNF#
</cfoutput>
</select>

if i run the code, the list of color description shows duplicated records.
such as

RedOrangeTabe
RedOrangeTabe
RedOrangeTabe
RedOrangeTabe
BlueGreenChair
BlueGreenChair
PurpleGreenKeyboard
PurpleGreenKeyboard
PurpleGreenKeyboard
PinkYellowCap
PinkYellowCap
PinkYellowCap

Is there any way i can list one value instead of duplicated values in the pick list?

expected list is as below:

RedOrangeTabe
BlueGreenChair
PurpleGreenKeyboard
PinkYellowCap
TOPICS
Advanced techniques

Views

225

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 19, 2006 Dec 19, 2006

Copy link to clipboard

Copied

LATEST
cfdump your query. Do you have duplicates in your db?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation