I'm using the com.adob.Coldfusion BindableComboBox that is created
with the coldfusion wizard.
I have an object in actionscript pub.as that is linked to my pub.cfc
object. Everything works fine except for my combo box. My ultimate
goal is the have the combobox and the model linked with the value of
the combo box (not the label of the value).
type is a number
<model:Pub id="pubObject">
<model:type>{this.typeCombo.selectedItemValue.toString()}</model:type>
</model:Pub>
<cfComponents:BindableComboBox id="pubCombo"
prompt="Choose Publication Type"
dataProvider="{typeDP}"
valueField="pkID"
labelField="publicationType"
selectedItem="{this.pubObject.type}"
close="formStateChange()"/>
I get this error:
warning: unable to bind to property 'selectedItemValue' on class
'com.adobe.ColdFusion.components::BindableComboBox'
This is the getter in bindableComboBox.mxml
public function get selectedItemValue():Object{
if( this.valueField != null && selectedItem != null)
{
return selectedItem[valueField];
}
else {
return text;
}
}