I have a cfc call at the top of a form that looks like this.
<cfinvoke
component="membermanager.model.member"
method="get"
returnvariable="member">
<cfinvokeargument name="ID" value="#url.memberid#"/>
</cfinvoke>
<!--- Bind the article data to the form --->
<cfset form.id = member.id>
<cfset form.fname = member.fname>
<cfset form.lname = member.lname>
<cfset form.email = member.email>
This form is called by
<do action="v_pages.admin" contentvariable="pageContent" />
from within a circuit file.
It all works correctly while I leave the cfinvoke tag in the top of the
form. When I try to take the cfinvoke tag and move it into my circuit
file everything breaks. I remove the cfinvoke tag above from the form
and add
<invoke object="membermanager.model.member" methodcall="get(
url.memberid )" returnVariable="member" />
to my circuit file right above where I call the form and I get this error.
BEGIN ERROR---------------------------------------
Variable MEMBERMANAGER is undefined.
The error occurred in
D:\Inetpub\wwwroot_clinton\MediaPost\MediaPost\Members\members\parsed\manager.main.cfm:
line 8
Called from
D:\Inetpub\wwwroot_clinton\MediaPost\MediaPost\fusebox41.runtime.cfmx.cfm:
line 432
Called from
D:\Inetpub\wwwroot_clinton\MediaPost\MediaPost\fusebox41.runtime.cfmx.cfm:
line 425
Called from
D:\Inetpub\wwwroot_clinton\MediaPost\MediaPost\fusebox41.runtime.cfmx.cfm:
line 1
Called from
D:\Inetpub\wwwroot_clinton\MediaPost\MediaPost\Members\members\index.cfm:
line 5
6 : <cfset myFusebox.thisFuseaction = "main">
7 : <!--- generated by fuseQ[3] lexicon: FUSEBOX verb: INVOKE via
manager.main --->
8 : <cfset member = membermanager.model.member.get( url.memberid ) />
9 : <!--- generated by fuseQ[4] lexicon: FUSEBOX verb: SET via
v_pages.admin --->
10 : <cfset myFusebox.thisCircuit = "v_pages">
END ERROR---------------------------------------
Why would this work when I make the call from within the form but not
when I make the call from the circuit file?
Any help would be greatly appreciated, thanks!
Mark Kecko
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6719
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.12
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54