Are you starting your loop at 0? Remember that CF is 1 based arrays,
not 0 like Java, C++ and so forth.
Here's where your 'Metric' is referenced...

<cfif Form["param#iCounter#Metric"] EQ "is">

Apparently Counter equals 0 at that point and form[param0Metric] doesnt exist



On Tue, Sep 16, 2008 at 5:16 PM, Spencer Liddle <[EMAIL PROTECTED]> wrote:
> Thanks for the quick reply Dave!
>
> I tried it out and got two new errors.  This first comes from the same page 
> referencing Metric(what does this mean).  I have hunted high and low but 
> can't find what metric means.
>
> The second error comes from another page.  This page searches companies based 
> on search conditions selected via drop down boxes.
>
> This problem is like trying to herd cats...
>
> ---- First Error ----
>
> Element param0Metric is undefined in a Java object of type class 
> coldfusion.filter.FormScope referenced as
>
>
> The error occurred in F:\Inetpub\wwwroot\cm_search_companies_query.cfm: line 
> 63
> Called from F:\Inetpub\wwwroot\cm_search_companies_query.cfm: line 60
> Called from F:\Inetpub\wwwroot\cm_search_companies_query.cfm: line 57
> Called from F:\Inetpub\wwwroot\cm_search_companies_query.cfm: line 26
> Called from F:\Inetpub\wwwroot\cm_search_companies_query.cfm: line 7
> Called from F:\Inetpub\wwwroot\cm_search_companies_query.cfm: line 1
> Called from F:\Inetpub\wwwroot\cm_view_companies.cfm: line 530
> Called from F:\Inetpub\wwwroot\cm_view_companies.cfm: line 1
>
> 61 :                                    <cfcase value="current">
> 62 :                                            <cfset iStandardParamCount = 
> iStandardParamCount + 1>
> 63 :                                            <cfif 
> Form["param#iCounter#Metric"] EQ "is">
> 64 :                                                    <cfset 
> sStandardParam[iStandardParamCount] = "tblCompanies.IsDealer = 1">
> 65 :                                            <cfelse>
>
> ----Second Error----
>
> Element param0Status is undefined in a Java object of type class 
> coldfusion.filter.FormScope referenced as
>
>
> The error occurred in F:\Inetpub\wwwroot\cm_search_companies_query.cfm: line 
> 60
> Called from F:\Inetpub\wwwroot\cm_search_companies_query.cfm: line 57
> Called from F:\Inetpub\wwwroot\cm_search_companies_query.cfm: line 26
> Called from F:\Inetpub\wwwroot\cm_search_companies_query.cfm: line 7
> Called from F:\Inetpub\wwwroot\cm_search_companies_query.cfm: line 1
> Called from F:\Inetpub\wwwroot\cm_view_companies.cfm: line 530
> Called from F:\Inetpub\wwwroot\cm_view_companies.cfm: line 1
>
> 58 :
> 59 :                    <cfcase value="dealer_status">
> 60 :                            <cfswitch 
> expression="#Form['param#iCounter#Status']#">
> 61 :                                    <cfcase value="current">
> 62 :                                            <cfset iStandardParamCount = 
> iStandardParamCount + 1>
>
>
>
> Thank You,
>
> Spencer
>
> ----------
>
>>Spencer,
>>
>>A couple of things:
>>
>>1.  You do a great job of defining the problem.  Congrats! :)
>>2.  Your problem appears to be that your line of code references
>>#Form['param#iCounter#DealerStatus']# and it should reference
>>#Form['param#iCounter#Status']#
>>
>>I don't see a param0DealerStatus field in your dynamic form content, nor in
>>your dump, but I do see param0Status and so on.  This is what appears to me
>>to be the issue.  Can you confirm?
>>
>>Dave
>>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3991
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to