cfargument error
Copy link to clipboard
Copied
Context validation error for tag cfargument.
The tag must be nested inside a CFFUNCTION tag.
<cfinvoke argument= "dsn" value="REQUEST.APPLICATION.dsn#">
Copy link to clipboard
Copied
Is this a <cfinvoke> tag or a <cfinvokeargument> tag? It looks malformed, either way.
Additionally, you're missing a #.
Tou could probably do with reading the docs a bit:
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7e09.html
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7e0a.html
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7e47.html
--
Adam
Message was edited by: Adam Cameron.
Copy link to clipboard
Copied
<cfargument name="dsn" value="#REQUEST.Apllication.dsn#">
Context validation error for tag cfargument. | |
The tag must be nested inside a CFFUNCTION tag. |
Sorry I mentioned it in correct way.
Copy link to clipboard
Copied
Where are you using the <cfargument...> tag?
Is it inside a <cffunction...></cffunction> block?
As the error and documention are telling us, the <cfargument...> tag is only allowed inside a <cffunction..> block.
Copy link to clipboard
Copied
I am using with cfinvoke method to pass the parameters.
<cfinvoke component="rate.functions.sql.feepurpose" method="insertFee" returnvariable="insertFeeResult">
<cfargument name="dsn" value="#REQUEST.APPLICATION.dsn#">
<cfargument name="dsuser" value="#REQUEST.APPLICATION.dsuser#">
<cfargument name="dspass" value="#REQUEST.APPLICATION.dspass#">
</cfinvoke>
Copy link to clipboard
Copied
Then that is the wrong tag to use.
With <cfinvoke...> tag you should be using the <cfinvokeArgument....> tag. <cfargument...> is for functions.
Adam's links would help straighten this out and explain all the details.
Copy link to clipboard
Copied
Adam's links would help straighten this out and explain all the details.
Yup. Time to stop typing and start reading. There's no point typing stuff in if you don't know what to type.
--
Adam

