Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfargument error

New Here ,
May 05, 2010 May 05, 2010

Context validation error for tag cfargument.

The tag must be nested inside a CFFUNCTION tag.

<cfinvoke argument= "dsn" value="REQUEST.APPLICATION.dsn#">

1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 05, 2010 May 05, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 05, 2010 May 05, 2010

<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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
May 05, 2010 May 05, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 05, 2010 May 05, 2010

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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
May 05, 2010 May 05, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 05, 2010 May 05, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources