Solved

Bind to cfc in colfusion 9

Posted on 2010-08-23
7
473 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 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Updating a field based on another with a calculation. 2 38
Coldfusion - rename files in a folder 4 18
PHP: Insert Data into MySQL 5 40
change database name 2 30
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
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, …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

777 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