Bound CFSelect not working (with or without search box)
Hello,
I'm on WS2008 (64-bit) with IIS and CF9.0.1 (32 bit) and can't seem to get a bound CFSelect to work at all. CFGrid and other AJAX contriols work great. The code (shown below) appears to run without errors but the option tags are never generated.The binding CFC method returns a query with the data I want (I can see it on a dump) but is dropped by CF somehow.
Ideally I want to use this approach on several complex forms but need to get something working first. Removing the lookup doesn't help either. I'm pulling this Oracle data via the 10G Client's ODBC driver.
I've been working on CF forever (4-9) and never was stumped like this. Otherwise CF 9 On this server is running without a hitch.
Long term I'm trying to move away from our Flash/Actionscript equivilants and move toward AJAX. But I'm stuck. Please help!
Thanks
Tim
Index.cfm
__________________________________________________
<cfparam name="form.lookup" type="string" default="A">
<cfform preservedata="Yes">
Search: <input type="text" name="lookup" id="lookup"><br />
<cfselect name="Emp" bind="cfc:application.getEmpList({lookup})" value="EMPL_NBR" display="EMPL_NM">
<option value="00000000">--- No Employees ---</option>
</cfselect>
</cfform><br>
<!--- Just for Testing --->
<cfinvoke component="Application" method="getemplist" returnVariable="qRead">
<cfinvokeargument name="likename" value="#form.lookup#">
</cfinvoke>
<cfdump var="#qRead#" output="browser">
Application.cfc
_____________________________________________________
<cffunction name="getEmpList" access="remote" returntype="query" output="yes">
<cfargument name="LikeName" type="string" required="yes">
<cfquery name="Emps" datasource="#application.dsn#" maxrows=50>
Select EMPL_NBR, EMPL_NM from MNDOT_EMPLOYEE
Where EMPL_STAT_CD = 'A' <cfif isdefined("LikeName")> and upper(Empl_Nm) like '%#ucase(likename)#%'</cfif>
Order By Empl_NM</cfquery>
<cfreturn emps>
</cffunction>
Message was edited by: CFTim1965
Message was edited by: CFTim1965
