Advertisement

04.04.2008 at 09:25AM PDT, ID: 23296548
[x]
Attachment Details

Bind 2 CFselect tags in CF8 Error

Asked by monosyth in Cold Fusion Markup Language, ColdFusion Application Server

Tags:

I am having trouble getting two CFselects to bind with Coldfusion 8. I am getting an error - "Bind Failed, Element not found {myvariable}". The first CFselect grabs the data, but doesn't bind the two.

I am attaching code.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
My cfselects:
 
 <cfselect name="AgentID" id="AgentID"
          bind="cfc:Addresses.getAgents()"
          class="theInput"
          display="Name" 
          value="AgentID" 
          bindonload="yes" />  
         
         <br />
         <cfselect name="AddressList"
         bind="cfc:Addresses.getEmails({AgentID})"
          class="theInput" 
          display="Name" 
          value="Email" />  
 
 
my Addresses.cfc file:
 
<cfcomponent>
	
    <!--- FUNCTION get list of users --->        
    <cffunction name="getAgents"
     			access="remote"
                returntype="query"
                hint="Get Agent Names for Ajax SELECT">
        
        <!--- Define variables --->        
        <cfset var data="">
        
        <!--- Get data --->
        <cfquery name="UserInfo" datasource="#Application.dsn#">
        SELECT ID
        FROM Clients
        WHERE Username = '#Session.username#'
        </cfquery>
        
        <cfquery name="data" datasource="#Application.dsn#">
        SELECT Name, AgentID
        FROM AgentManager
        WHERE ID = #Userinfo.ID#
        ORDER BY Name
        </cfquery>
		
        <!--- And return it --->  
         <cfreturn data>
	</cffunction>
   
    
    <!--- FUNCTION get list of users --->        
    <cffunction name="getEmails"
     			access="remote"
                returntype="query"
                hint="Get Emails for Ajax SELECT">
        
        <cfargument name="AgentID"
        type="numeric"
        required="true">       
        
        <!--- Define variables --->        
        <cfset var data="">
        
        <!--- Get data ---> 
        <cfquery name="data" datasource="#Application.dsn#">
        SELECT Email, AgentID, Name
        FROM AddressBookRealtors
        WHERE AgentID = #ARGUMENTS.AgentID#
        ORDER BY Name
        </cfquery>
		
        <!--- And return it --->  
         <cfreturn data>
	</cffunction>
 
</cfcomponent>
[+][-]04.04.2008 at 03:25PM PDT, ID: 21286079

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.05.2008 at 11:37AM PDT, ID: 21289137

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 08:23AM PDT, ID: 21297796

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 09:29AM PDT, ID: 21298423

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 09:40AM PDT, ID: 21298509

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 09:51AM PDT, ID: 21298601

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 10:50AM PDT, ID: 21299046

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 11:03AM PDT, ID: 21299148

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.26.2008 at 01:26AM PDT, ID: 21645277

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.21.2008 at 06:24PM PDT, ID: 21839384

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.21.2008 at 06:30PM PDT, ID: 21839399

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cold Fusion Markup Language, ColdFusion Application Server
Tags: Coldfusion 8
Sign Up Now!
Solution Provided By: monosyth
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628