Nope, already tried that. Besides, the box that is checked is the last one
in the query, which means that it has looped over the other ones and landed
on the last one.

-----Original Message-----
From: Matt Williams [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 05, 2007 2:41 PM
To: CF-Talk
Subject: Re: Output not what I expect

You have maxrows="1" on your <cfoutput>. That means it will only see
one of the three NC_IDs.

I think.


On 1/5/07, Bruce Sorge <[EMAIL PROTECTED]> wrote:
> I have this piece of code:
>
> <cfloop from="1" to="#ArrayLen(NCArray)#" index="i">
>       <cfoutput group="NC_ID" maxrows="1">
>        <td>
>         <input type="checkbox" name="NC_ID" value="#NCArray[i][2]#"
>         <cfif getPCtoNCRet.NC_ID IS NCArray[i][2]> Checked</cfif>>
> &nbsp;#NCArray[i][1]#
>        </td>
>        </cfoutput>
>       <cfif i MOD 4 EQ 0>
>        </tr>
>        <tr>
>        </tr>
>       </cfif>
>      </cfloop>
>
> What is happening is that the only checkbox that is checked is the last
one
> in the query result. If I have three NC_ID in the getPCtoNCRet variable,
> then I want all three checkboxes checked. Why is this not happening?
>
> Thanks,
> --
> Bruce Sorge
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265886
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to