[英]How select an item from drop-down of com-box with Enter Key in Flex?
[英]How to enter the Drop Down List Id into the sqlite database from in Flex mobile application for playbook?
請提供一些幫助,我無法在我的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>
對不起,以上代碼是完全正確的。 當我將下拉字符串的值傳遞給數據庫時,我使用了“,” +“ dropdown.Id +”,“,但是它是錯誤的。比我再試一次或使用”,“ +” dropdown.selectedIndex “ +”,“它正常工作。
因此,如果有任何使用sqlite的人,則使用上面的decle。 謝謝,Vinod
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.