请帮忙,我无法在我的 flex 移动应用程序中将数据库 ID 输入到 Sqlite 数据库中。以下是我的代码:
<fx:Script>
<![CDATA[
[Bindable]public var acItem : ArrayCollection = new ArrayCollection(
[ {ItemName:'ABC',data:0},
{ItemName:'XYZ',data:1},
{ItemName:'PQR',data:2},
]);
protected function dropdown_changeHandler(e:IndexChangeEvent):void
{
selection = e.newIndex;
}
]]>
</fx:Script>
<s:DropDownList id="dropdown" width="150" height="61.35" change="dropdown_changeHandler(event)"
dataProvider="{acItem}" fontSize="16" labelField="ItemName"
prompt="SelectDatabase"
x.landscape="492" y.landscape="380" width.landscape="215"
height.landscape="31.35"
x.portrait="243" y.portrait="568" width.portrait="215" height.portrait="31.35">
</s:DropDownList>