0 Replies Latest reply on Apr 10, 2008 6:14 AM by nrutter

    Radio Button

    nrutter Level 1
      I am having all kinds of problems trying to return the string of the selected radio button to my VO. I have a set of radio buttons below. What I am trying to figure out is how I am supposed to return the selected value to my ProductVO.

      [Bindable] public var currentProduct:ProductVO = new ProductVO('',null,'','','upcRadio', 'prodNameRadio', 'epaRadio','');

      <mx:RadioButtonGroup id="searchtype"
      change="model.currentCaseVO.upcRadio" />
      <mx:RadioButton groupName="searchtype"
      id="upcRadio" value="upcRadio"
      change="model.currentCaseVO.upcRadio"
      label="UPC"
      width="116"/>
      <mx:RadioButton groupName="searchtype"
      id="prodNameRadio" value="prodNameRadio"
      change="currentProduct.prodNameRadio"
      label="Product Name"
      width="121"/>
      <mx:RadioButton groupName="searchtype"
      id="epaRadio" value="epaRadio"
      change="model.currentCaseVO.epaRadio"
      label="EPA/FDA"
      width="125"/>