How about changing the access for listSelectedCouncil function from 
"package" to "public", maybe that would help?

-- Josh


----- Original Message ----- 
From: "Bruce Sorge" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Monday, December 11, 2006 1:59 PM
Subject: Re: CFC Issue


> Sorry, I guess I should have put that out there too. I am getting this
> error:
>
> The package method 'listSelectedCouncil' in component
> C:\Intetpub\wwwroot\DONE\CFC\getCouncils.cfc cannot be access from
> C:\Intetpub\wwwroot\DONE\nc\Done_Edit.cfm
>
>
> On 12/11/06, Dan Vega <[EMAIL PROTECTED]> wrote:
>>
>> You need to make sure you var scope your query names
>>
>> <cfset var qNCSelected = "">
>>
>> I am not quite sure what your problem is though?
>>
>> On 12/11/06, Bruce Sorge <[EMAIL PROTECTED]> wrote:
>> >
>> > Hello,
>> > I have a CFC that works fine until I use a certain CFINVOKE.
>> > The invoke tag is thus:
>> > <cfinvoke
>> > component="CFC.getCouncils"
>> > method="listSelectedCouncil"
>> > returnvariable="listSelectedCouncilRet">
>> > </cfinvoke>
>> >
>> > Now this one is no different than the other invokes I have on the page,
>> > and
>> > when I remove this one all is well. Below is the code from the actual
>> CFC:
>> > <cffunction name="listSelectedCouncil" access="package"
>> returntype="query"
>> > hint="Get the NC we want to edit">
>> > <cfargument name="NCID" type="string" required="yes" hint="NC_ID is
>> > required" default="#ID#">
>> >
>> >   <cfquery datasource="#Application.dsource#" name="qNCSelected">
>> >    SELECT *
>> >    FROM tblNeighborhoodCouncil
>> >    WHERE NC_ID = #ID#
>> >   </cfquery>
>> >   <cfreturn qNCSelected>
>> > </cffunction>
>> >
>> > I can run the query just fine. I am befuddled.
>> >
>> > Thanks,
>> > Bruce
>> >
>> >
>> >
>>
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263651
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to