Bind to cfc in colfusion 9

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!
bruhastAsked:
Who is Participating?
 
ZvonkoConnect With a Mentor Systems architectCommented:
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
 
ZvonkoSystems architectCommented:
Print out that #pathtofunctions# and see what is wrong there.
0
 
bruhastAuthor Commented:
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
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
bruhastAuthor Commented:
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
 
ZvonkoSystems architectCommented:
Try this URL parameter:

community\display\dsp_findresidents.cfm?cfdebug

0
 
ZvonkoConnect With a Mentor Systems architectCommented:
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
 
bruhastAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.