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?

can you output the values of getPCtoNCRet.NC_ID and NCArray[i][2] to
see that they're the same (which they should be if you're expecting
the checkbox to be checked).

also...shouldn't your <cfoutput> have a query attribute (since you're
using a group attribute)?

-- 
Charlie Griefer

================================================
"...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed."

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:265885
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