Let me see if I can explain this...
I have a table that displays a listing of buyer limits in various countries. The countries are referenced by a country ID in the database.
I would like to add a function to filter by country by generating a select list from my query.
If I do soemthin like this...
<cfselect name="Filter">
<cfoutput>
<option value="#valuelist(qGetCount.CountryID)#">All</option>
</cfoutput>
<cfoutput query="qGetCount">
<option value="#qGetCount.CountryID#">#qGetCount.Country#</option>
</cfoutput>
</cfselect>
I get a country for every record in the query. Is there a way to have the select list display each country only once even though the query returns duplicates?
I could generate the select list manually, but it would be nice to list only the relevant countries...
Thanks in advance,
Kristine
I have a table that displays a listing of buyer limits in various countries. The countries are referenced by a country ID in the database.
I would like to add a function to filter by country by generating a select list from my query.
If I do soemthin like this...
<cfselect name="Filter">
<cfoutput>
<option value="#valuelist(qGetCount.CountryID)#">All</option>
</cfoutput>
<cfoutput query="qGetCount">
<option value="#qGetCount.CountryID#">#qGetCount.Country#</option>
</cfoutput>
</cfselect>
I get a country for every record in the query. Is there a way to have the select list display each country only once even though the query returns duplicates?
I could generate the select list manually, but it would be nice to list only the relevant countries...
Thanks in advance,
Kristine