all:
I am having a problem with a CFC... I keep getting the error
The argument CATEGORYID passed to function linkCategory() is not of type
int.
If the component name is specified as a type of this argument, the reason
for this error might be that a definition file for such component cannot be
found or is not accessible.
28 sure looks like an int to me but the CFC just seems to swear it is not.
Does anyone have any clues??? The following code shows what I am trying to
do.
On the calling page:
<!--- in the object is instantiated well above here --->
<cfset bLinked=request.cfc.Category.linkCategory(28, 36, request.dsn)>
This is the actual CFC:
<!---Category.cfc--->
<!--- Stuff omitted --->
<cffunction access="public" displayname="linkCategory"
hint="Link a Category" name="linkCategory" output="yes"
returntype="boolean">
<cfargument name="CategoryID" required="Yes" type="int"
hint="The Category ID">
<cfargument name="ParentID" required="Yes" type="int"
hint="The Category ID of the new Parent">
<cfargument name="DSN" required="Yes" type="string"
hint="The datasource name">
<cfoutput>
#ARGUMENTS.CategoryID#<br>
#ARGUMENTS.ParentID#<br>
#ARGUMENTS.dsn#<br>
</cfoutput>
<!--- <cfstoredproc datasource="#ARGUMENTS.dsn#"
procedure="Hierarchy_InsertCategoryLink">
<cfprocparam cfsqltype="CF_SQL_INTEGER" type="In"
value="#ARGUMENTS.CategoryID#" dbvarname="CategoryID">
<cfprocparam cfsqltype="CF_SQL_INTEGER" type="In"
value="#ARGUMENTS.ParentID#" dbvarname="ParentID">
</cfstoredproc> --->
<cfreturn True>
</cffunction>
Craig Fisher
Macromedia Certified Instructor
Macromedia Certified Advanced ColdFusion 5 Developer
[EMAIL PROTECTED]
801-791-8251
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists