Skip to main content
Participant
Mar 9, 2011 10:12 AM UTC
Question

Made a mistake in my code

I've been looking through my code over and over and can't figure out why I'm getting this error.

Element BLMHEAD is undefined in ARGUMENTS.

The error occurred inD:/home/botdls.com/wwwroot/AF3Priorities/Testing/af3_user_priority.cfc: line 1328
1326 :           BP3='#Trim(ARGUMENTS.BP3)#',
1327 :           BP4='#Trim(ARGUMENTS.BP4)#',     
1328 :           BLMHead='#Trim(ARGUMENTS.BLMHead)#',
1329 :           BLMBody='#Trim(ARGUMENTS.BLMBody)#',
1330 :           BLMHands='#Trim(ARGUMENTS.BLMHands)#',

I can't figure out why I'm getting this error.  Here are my files:

CFC: http://pastebin.com/fjhGBd8G
EDIT PAGE: http://pastebin.com/kcnf6PdV
PROCESS PAGE: http://pastebin.com/dnXhYiGc

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Owainnorth
    Inspiring
    Mar 9, 2011 10:21 AM UTC

    Quite simply, the blmhead argument is not being passed to your cfc.

    I had a quick look at your links, but do you really expect people to read 4300 lines of code to find the problem?

    Translate
    MIGhunterAuthor
    Participant
    Mar 9, 2011 10:44 AM UTC

    I don't see why it's not getting passed.  It's basically the template from WACK.  It just repeats a lot of stuff.  It worked before then I added some new stuff.  Everything from that error down is new.  Before that it worked.  I don't get why adding it broke it.

    Edit page has:

    line 52: <cfset BLMHead=Trim(af3_user_priority.BLMHead)>

    line 183: <cfset BLMHead="">

    lines: 846-861

              <td CLASS="ROW2">                BLM Head:           </td>           <td>                <cfselect name = "BLMHead"                          required = "no"                          size = "1"                          multiple = "No"                          selected = "#BLMHead#"                          >                <option value = "None">None</option>                <option value = "AF3+1">AF3+1</option>                <option value = "AF3+2">AF3+2</option>                </cfselect>           </td>

    Process page has:

    line 70 & 71:

    <cfinvokeargument     name="BLMHead"                value="#Trim(FORM.BLMHead)#">

    Then on the CFC:

    line 243 and 900:

         <cfargument     name="BLMHead"                type="string"                required="no"                hint="BLM Head finished">

    Translate