Skip to main content
Participating Frequently
May 14, 2010
Question

error invoking cfc from url variable

  • May 14, 2010
  • 1 reply
  • 1795 views

I am using a url with a variable tacked on it. When I call a file with to create a cfgrid the cfc it uses gives an error. It tells me the variable is undefined. This is a problem since I need to use it in the sql to create the grid. Seems like this is not the right way to get the variable to the sql statement but I dont know how else to do it since I have to use a url to invoke the grid. Thanks in advance for your help.

    This topic has been closed for replies.

    1 reply

    Inspiring
    May 14, 2010

    Maybe it is just Friday ... but I have absolutely no idea what you mean Can you post some code so we can get a better sense of the problem? A small amount to demonstrate the variable / scope issues you mentioned.

    mdmmecAuthor
    Participating Frequently
    May 15, 2010

    Here is the cfc. This is called from the cfgrid also shown below.

    <!--- cfgrid below -


    linking to this file from url with the variable i

    need to pass to the cfc- hope this helps >

    <cfgrid name="protrainparticipants"

    format="html"

    pagesize="10"

    striperows="yes"

    selectmode="edit"

    delete="yes"

    bind="cfc:participantcomp.getparticipants(,

    ,

    ,

    )"

    onchange="cfc:participantcomp.editparticipant(,

    ,

    )">

    <!-</cfwindow>-