I use cfobject to instantiate my components in my Application.cfm file.
cfobject name=test1obj component=cfc/test1
cfobject name=test2obj component=cfc/test2
Can I use test1.cfc to call a method from test2.cfc?
In a typical .cfm page I would invoke the component like this,
cfinvoke
I use cfobject to instantiate my components in my
Application.cfm file.
cfobject name=test1obj component=cfc/test1 cfobject
name=test2obj component=cfc/test2
Can I use test1.cfc to call a method from test2.cfc?
In a typical .cfm page I would invoke the component like
this, cfinvoke
I have been creating and invoking my CFCs like such:
cfset gateway = createObject(component,
appName.path.cfc).init(application.dsn) /
cfset qRecordset = gateway.getRecords() /
But I am considering using cfobject instead. Here is a comparison:
cfobject name=gateway component=appName.path.cfc
) /
cfset qRecordset = gateway.getRecords() /
But I am considering using cfobject instead. Here is a comparison:
cfobject name=gateway component=appName.path.cfc
cfinvoke component=gateway method=getRecords returnvariable=qRecordset
The only problem is that I don't know how to pass
between cfinvoke/cfinvoke tags.
This made me think that WA eCart could recognize CFC Queries in the
same way. However, I don't want to invoke my component each time I
invoke one of its methods. Therefore, I was thinking of using cfobject
to instantiate the component and cfinvoke to call the method
--- as
a comment between cfinvoke/cfinvoke tags.
This made me think that WA eCart could recognize CFC Queries in the
same way. However, I don't want to invoke my component each time I
invoke one of its methods. Therefore, I was thinking of using cfobject
to instantiate the component and cfinvoke to call
using cfobject.
What am I missing? Any help would be appreciated.
Thanks,
Aaron
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion
Dear All,
I'm using the following script to dump the various scopes which exist
into an email as a form of error handling.
However, my shared host has locked down CFOBJECT, so this doesn't
work unless I remove some of the structs being dumped.
The Script in application.cfc:
cffunction
expires=never
Is there a better way of getting this information without using cfobject?
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
: Using cfobject
Hi,
I'm using the line to grab the computer name and the authenticated user
on a WIndows 2000 Server.
cfobect type=COM name=w class=WScript.Network action="">
cfcookie name=DisplayComputerName value=#w.ComputerName#
expires=never
cfcookie name=DisplayAuthenticatedUse
I been writing some java classes for use in CFMX and have a few questions.
Is this the default location for my class files?
/CFUSIONMX/WWWROOT/WEB-INF/CLASSES/
When I modify and replace existing class files is it necessary to restart
any services for the changes to take effect?
Thanks,
~Dave
to restart when you change classes.
-Original Message-
From: Bosky, Dave [mailto:[EMAIL PROTECTED]
Sent: 27 August 2003 14:12
To: CF-Talk
Subject: Using cfobject
I been writing some java classes for use in CFMX and have a few
questions.
Is this the default location for my class files
Has, anyone out there ever used CFOBJECT to query a JavaBean for LDAP authentication,
if so is it possible to share a bit of example code?
Kind Regards - Mike Brunt
~|
Archives:
Why not just use cfldap or cfauthenticate (depending on what you need
to do)?
-Original Message-
From: Mike Brunt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 2:44 PM
To: CF-Talk
Subject: Using CFOBJECT in CF50 to query LDAP?
Has, anyone out there ever used CFOBJECT
Going to the below site causes a redirect to
http://www.coldfusionmonthly.com/cfm/, a blank page. Anyone else seeing
this? I'm using IE 5.0 on Win2K.
-Original Message-
From: Reed Powell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 12:44 PM
I just read a real
I just read a real interesting article on the www.coldfusionmonthly.com site
about using CFOBJECT to access Excel files via COM. The primary motivation
of what was talked about in the article was to get Excel to create charts
and graphs. Has anyone tried the similar tack of using CFOBJECT to get
ect: Using CFOBJECT to connect to WORD?
I just read a real interesting article on the www.coldfusionmonthly.com site
about using CFOBJECT to access Excel files via COM. The primary motivation
of what was talked about in the article was to get Excel to create charts
and graphs. Has anyone tried the si
Message-
From: Caulfield, Michael [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 2:14 PM
To: CF-Talk
Subject: RE: Using CFOBJECT to connect to WORD?
We actually used to use it all the time for on the fly conversion of word
processing documents into HTML and it worked rather well. When
with
Visual Studio, but I think it can be downloaded from the MS site as well.
Not sure where though.
Have fun.
Mike
- Original Message -
From: Reed Powell [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, March 29, 2001 1:43 PM
Subject: Using CFOBJECT to connect to WORD
","sa","",0,"","","","test","")
CFIF isDefined("error_message")
cfoutput #error_message# /cfoutput
/cfif
CFSET p= objDTS.Execute()
Hope this helps out all of you who are (fortunate enough to
Has anyone created a dts file in MS SQL7 and was able to access it using
cfobject? I am getting the error:
Error trying to create object specified in the tag.
COM error 0x800401F3. Invalid class string
The error occurred while processing an element with a general identifier of
(CFOBJECT
21 matches
Mail list logo