Solved

Bind to cfc in colfusion 9

Posted on 2010-08-23
7
469 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
Comment Utility
Print out that #pathtofunctions# and see what is wrong there.
0
 

Author Comment

by:bruhast
Comment Utility
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
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:bruhast
Comment Utility
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
Comment Utility
Try this URL parameter:

community\display\dsp_findresidents.cfm?cfdebug

0
 
LVL 63

Assisted Solution

by:Zvonko
Zvonko earned 500 total points
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now