Can someone point me to an example of pre-selecting a radio button with a value 
retrieved from a database? Everything I've found so far tells you how to take 
an action when something is selected.

I REALLY hope I can get some training in FY09!!

I tried the following but get this message when compiling:

ERROR
1119: Access of possibly undefined property text through a reference with 
static type mx.controls:RadioButtonGroup.     
gte911/src/com/cfgenerated/views/masterdetail   

CODE:
(from the model section)
<model:ON_OFF_CAMPUS>{MASTER_STREET_ADDRESS_TBL_ON_OFF_CAMPUS.text as 
String}</model:ON_OFF_CAMPUS>

(from the form section)
<mx:RadioButtonGroup id="MASTER_STREET_ADDRESS_TBL_ON_OFF_CAMPUS"/>
  <mx:HBox width="100%">
    <mx:Spacer/>
    <mx:RadioButton label="ON" 
groupName="MASTER_STREET_ADDRESS_TBL_ON_OFF_CAMPUS"
      selected="{(this.detailObject.ON_OFF_CAMPUS.toLowerCase() == 
'ON')?true:false}"/>
    <mx:RadioButton label="OFF" 
groupName="MASTER_STREET_ADDRESS_TBL_ON_OFF_CAMPUS"
      selected="{(this.detailObject.ON_OFF_CAMPUS.toLowerCase() == 
'OFF')?true:false}"/>
  </mx:HBox>

-- 
Andy Fox
Systems Analyst III
Georgia Tech OIT-EIS


-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------


Reply via email to