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

Passing List to Component as CFIINVOKEARGUMENT

New Here ,
Apr 22, 2010 Apr 22, 2010

Hi,

I'm trying to pass a list to a Component as a CFIINVOKEARGUMENT with

<cfinvokeargument

name="excludeReports" value="1,2">

The Component is

<cfargument

name="excludeReports" type="String" required="No" default="">

and then the logic is

<cfif

not ListContains(excludeReports,"1")>

     do something really cool

</cfif>

But something really cool happens unless I change the default to like this

<cfargument name="excludeReports" type="String" required="No" default="1,2">

233
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 ,
Apr 22, 2010 Apr 22, 2010
LATEST

Nevermind, I was dumping the wrong variable - doh!

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