Solved

Bind to cfc in colfusion 9

Posted on 2010-08-23
7
474 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 

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 500 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 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