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:flexcoders@yahoogroups.com] 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?
wsdl" id="gvsQueriesWS">
        <mx:operation name="Thrust_Query">
          <mx:request>
            <ThrustName>{WhereIneedToPassCheckboxDATA}</ThrustName>
          </mx:request>
        </mx:operation>
      </mx:WebService>     






Yahoo! Groups Links

Reply via email to