Never mind, I was solving the wrong problem.  Tract

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, May 24, 2005 6:30 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] can I bind more that one checkbox to a send
requ est?

I would use the editField() method to update the dataProvider as you go.
When you are ready to submit, iterate through the dataProvider, check
the value of the field you updated with editField.  If it is true, push
an element on a new array. Submit the new array.

Or, create a new submit array on initialize, then add or remove elements
as needed from within the cellEdit handler.  Then it will always be
ready to submit.

Tracy

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Craig Newroth
Sent: Tuesday, May 24, 2005 7:56 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] can I bind more that one checkbox to a send
requ est?

Matt:
Thanks for the response, I am trying to pass a list of
the ones that are checked..values in the checkboxes
are going to be passed to a cfc to get data from query
and returned to datagrid.
so I guess that you are saying to build an array out
of the checkboxes (if they are checked) and then pass
that array value to my cfc call?
Craig

--- Matt Chotin <[EMAIL PROTECTED]> wrote:
> Are you trying to pass a list of the ones that are
> checked or just one?
> Your changeThrusts method can simply store which
> checkboxes are selected and
> then you can build an array to pass to your web
> service for the query.  If
> only one of those checkboxes is meant to be checked
> maybe you should look
> into using RadioButtons instead and then take
> advantage of
> RadioButtonGroup.selectedData.
> 
>  
> 
> Matt
> 
>  
> 
>   _____  
> 
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> Behalf Of cnewroth55
> Sent: Thursday, May 19, 2005 10:44 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] can I bind more that one
> checkbox to a send request?
> 
>  
> 
> I have a form that has several different checkboxes
> and need to pass 
> any of their respected labels (or data) to a
> webservice cfc..what i 
> what to do is be able to pass any of the below up to
> my webservice 
> call. the code for the web service call is below
> this...;
> 
> <mx:VBox>
>                <mx:CheckBox label="Select All
> Thrust" 
> color="#123154"  labelPlacement="right"
> id="ThrustReportsCHB1" 
> click="changeThrusts( event );" />
>                <mx:CheckBox label="ASMT - Affordable
> Structures 
> &amp; Mfg. Tech" color="#123154"
> labelPlacement="right" 
> id="ThrustReportsCHB2" />
>                <mx:CheckBox label="ALE - Adv. Lean
> &amp; Efficient" 
> color="#123154" labelPlacement="right"
> id="ThrustReportsCHB3" />
>                <mx:CheckBox label="ASC - Adv.
> Support Concepts" 
> color="#123154" labelPlacement="right"
> id="ThrustReportsCHB4" />
>                <mx:CheckBox label="ASC - APS - Adv.
> Platform 
> Systems" color="#123154" labelPlacement="right" 
> id="ThrustReportsCHB5" />
>                <mx:CheckBox label="NCO - Net-Centric
> Operations" 
> color="#123154" labelPlacement="right"
> id="ThrustReportsCHB6" />
>                <mx:HBox x="5" y="230" >
>               <mx:FormItem >
>                     <mx:CheckBox label="Summary"
> color="#123154" 
> labelPlacement="top" id="summaryCHB"
> click="changeOther( event );"/>
>               </mx:FormItem>
>               <mx:FormItem>
>                     <mx:CheckBox label="Detail"
> color="#123154" 
> labelPlacement="top" id="detailCHB"
> click="changeOther( event );"/>
>               </mx:FormItem>
>                </mx:HBox>
>                   </mx:VBox>
> 
> WEB SERVICE CALL
> <mx:WebService
>
wsdl="http://nameremoved.com/gvs/_cfc/gvs_queries.cfc?
> <http://nameremoved.com/gvs/_cfc/gvs_queries.cfc?> 
> wsdl" id="gvsQueriesWS">
>         <mx:operation name="Thrust_Query">
>           <mx:request>
>            
>
<ThrustName>{WhereIneedToPassCheckboxDATA}</ThrustName>
>           </mx:request>
>         </mx:operation>
>       </mx:WebService>      
> 
> 
> 
> 
> 
> 
>   _____  
> 
> Yahoo! Groups Links
> 
> *     To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
> <http://groups.yahoo.com/group/flexcoders/> 
>   
> *     To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
<mailto:[EMAIL PROTECTED]>
> 
>   
> *     Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/>  Terms of
> Service. 
> 
> 


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/


 
Yahoo! Groups Links



 






 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to