As the docs state, selectedValue gives you the value of the value property on the selected radiobutton. You either need to add a value attribute to your buttons in mxml, or just use RadioButtonGroup.selection.label (or whatever you want to pass along). RadioButtonGroup.selection gives you a reference to the selected RadioButton object itself, RadioButtonGroup.selectedValue is essentially a shortcut for RadioButtonGroup.selection.value.
-----Original Message----- From: Jason B <nos...@advancedonsite.com> Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: radio button is chosen when passing it through httpsservice Date: Fri, 19 Dec 2008 17:14:03 -0000 I tried selected Value but it passes null --- In flexcoders@yahoogroups.com, Maciek Sakrejda <msakre...@...> wrote: > > http://livedocs.adobe.com/flex/3/langref/mx/controls/RadioButtonGroup.html#selectedValue > > > -----Original Message----- > From: Jason B <nos...@...> > Reply-To: flexcoders@yahoogroups.com > To: flexcoders@yahoogroups.com > Subject: [flexcoders] radio button is chosen when passing it through > httpsservice > Date: Fri, 19 Dec 2008 16:55:38 -0000 > > I was wondering if theres a way to pass which radio button is chosen > when passing it through httpsservice, currently i have to specify an > ID for each button then pass that but I'd like to handle one parameter > being passed. > > <mx:HTTPService ....> > <mx:request xmlns=""> > <rmvpaymentdate> > {rmvpaymentdate.text} > </rmvpaymentdate> > <payment_type> > {rmvpayments_searchtype_group.??} > </payment_type> > > </mx:request> > </mx:HTTPService> > > <mx:RadioButtonGroup id="rmvpayments_searchtype_group"/> > <mx:RadioButton x="375" y="12" label="Vehicles" > groupName="rmvpayments_searchtype"/> > <mx:RadioButton x="450" y="12" label="Motorcycles" > groupName="rmvpayments_searchtype"/> > <mx:RadioButton x="540" y="12" label="Both" > groupName="rmvpayments_searchtype" selected="true"/> >