Skip to main content
Known Participant
April 22, 2010
Question

Passing List to Component as CFIINVOKEARGUMENT

  • April 22, 2010
  • 1 reply
  • 256 views

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

    This topic has been closed for replies.

    1 reply

    flhtflhtAuthor
    Known Participant
    April 22, 2010

    Nevermind, I was dumping the wrong variable - doh!