problem with a bound cfselect using the selected feature.
I'm trying to get my bound cfselects to know if a record
was pulled up, and a selection was made, the cfselect shows it. If your adding a new
record, it doesn't matter. I get it to work without the bind, but I think this is a little different and not workin
g the way I need it to. Can anyone help me? I'll put in my 2 selects.. if you need more code, I can provide it. I'll als
o add the query that is called up for the page, the selects are populated by the cfc file, so maybe I'm going abo
ut this in the wrong direction?
query:
<cfquery name="categRec" datasource="#APPLICATION.dataSource#">
SELECT c.CategoryID, c.CatName AS cat_name, p.MerchName, p.MerchDescription, p.MerchPrice, p.MYFile, p.ProNumber, p.merchID, p.subID
FROM merchCategory AS c
INNER JOIN Merchandise AS p ON c.CategoryID = p.CategoryID
WHERE p.merchID = <cfqueryparam value="#URL.ID#" cfsqltype="cf_sql_integer">
AND c.CategoryID = p.CategoryID
</cfquery>
My Selects:
<cfselect
bind="cfc:art.getMedia()" enabled="No"
bindonload="true" name="CategoryID" multiple="no" selected="#url.ID#" />
<cfselect
bind="cfc:art.getArt({CategoryID})" enabled="No" name="subID" multiple="no" selected="#url.ID#" />
Can anyone help me out? I can make my .cfc querys or file available if needed.
