Geoff
Anywhere where there is an example of this?
Also, while your up, what do you think of this?
<cfinvoke returnvariable="getChildren" component="selectQuery"
method="getChildren">
<cfinvokeargument name="ParentID" value="0">
<cfinvokeargument name="ParentColumn" value="ParentID">
<cfinvokeargument name="TableName" value="Categories">
<cfinvokeargument name="Datasource" value="#request.dbs#">
<cfinvokeargument name="ReturnColumns"
value="CategoryID,ParentID,CategoryName">
<cfinvokeargument name="ExtraSQL" value="AND Active = 0">
</cfinvoke>
<cfscript>
getChildren = CreateObject("component","selectQuery");
args = StructNew();
args.ParentID = 0;
args.ParentColumn = "ParentID";
args.TableName = "Categories";
args.Datasource = request.dbs;
args.ReturnColumns = "CategoryID,ParentID,CategoryName";
args.ExtraSQL = "AND Active = 1";
getChildren.getChildren(argumentCollection = args);
</cfscript>
<cfdump var="#getChildren#">
If I run the CFINVOKE way, it returns the correct results. When I run the
CFSCRIPT way, what gets dumped is a dump of the object, as in all the
methods.
Whats the go?
am i missing something?
I dumped the arguments structure in the component and they are getting
passed in OK
Any ideas?
Regards
Steve Onnis
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Geoff
Bowers
Sent: Saturday, January 25, 2003 10:18 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Accessing CFCs
Steve Onnis wrote:
> Can you use CF Mappings to in the paths for invoking your CFCs?
Certainly you can use CF Mappings for CFC's. The only time they need to
be exposed under the webroot is if you are trying allow remote access
via a URL, Flash Remoting or as a WebService.
I would recommend keeping your core components outside of the webroot,
and building facade objects for access to components from the outside.
That is, a component that calls your "hidden" core components and
provides a more carefully restricted set of methods for access by
outside parties.
-- geoff
http://www.daemon.com.au/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/