?
Solved

Bind to cfc in colfusion 9

Posted on 2010-08-23
7
Medium Priority
?
481 Views
Last Modified: 2012-05-10
Hi -

I'm sure this is elementary, but I cannot figure out what my issue is. I have my cfc's registered in coldfusion and can also get to them by using CreateObject, but get this error when trying to bind to them:
"The specified CFC ChargeInfo could not be found."

This finds them:
<cfset ChargeInfo=CreateObject("Component","#pathtofunctions#.CompleteInfo")>

Open in new window


But doing a bind on a cfinput throws the above error. I am able to bind to url's with no issue.

Thanks!
0
Comment
Question by:bruhast
  • 4
  • 3
7 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 33503900
Print out that #pathtofunctions# and see what is wrong there.
0
 

Author Comment

by:bruhast
ID: 33504129
It prints correctly, as functions.CompleteInfo

I do it this way as my production server is Windows and development machine is Mac OSx.

Even when typing it out complete, I still get the same error.
0
 
LVL 63

Accepted Solution

by:
Zvonko earned 2000 total points
ID: 33504335
What is your setting for the access= property in the CFC cffunction definition?
If you do not state then it is access="public" accessible only on the same page.
You need for the function the definition: access="remote"

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:bruhast
ID: 33504465
Thanks for your help.

I have this set as well. Here's the function
(in folder community\functions\CompleteInfo.cfc)
[code]

   
      
      
          
              SELECT DISTINCT(rb_resident.ReshID),
                rb_resident.BillName AS FullName,
                CONCAT(rb_resident.FirstName, ' ', rb_resident.LastName, ' - Unit: ', rb_resident.UnitNo) AS Suggestion,
                rb_resident.UnitID
            FROM rb_unitcharges INNER JOIN rb_resident ON rb_unitcharges.SiteID = rb_resident.SiteID AND rb_resident.ReshID = rb_unitcharges.ReshID
            WHERE rb_resident.Siteid =  AND rb_resident.FirstName LIKE '#searchvalue#%'
            ORDER BY rb_resident.FirstName, rb_resident.LastName;
          
            
      

[/code]

And here's the autosuggest:
(In folder community\display\dsp_findresidents.cfm)

[code]

[/code]

0
 
LVL 63

Expert Comment

by:Zvonko
ID: 33505654
Try this URL parameter:

community\display\dsp_findresidents.cfm?cfdebug

0
 
LVL 63

Assisted Solution

by:Zvonko
Zvonko earned 2000 total points
ID: 33505665
By the way, I get your "could not be found" message when I have syntax errors in the CFC function for example in the cfquery.
0
 

Author Comment

by:bruhast
ID: 33514960
Hi there -

Debugging is on and doesn't return any errors. I've also checked the query in mysql and it returns with no issue.

Any other ideas?

Thanks again for your help.

Nathanael
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month16 days, 12 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question