0

助けてください。Flex モバイル アプリケーションの Sqlite データベースにデータベース ID を入力できません。以下は私のコードです:

<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>
4

1 に答える 1

0

上記のコードは完全に正しいです。ドロップダウン文字列の値をデータベースに渡すときに、「、」+「dropdown.Id +」を使用しましたが、間違っています。もう一度試すか、「、」+「dropdown.selectedIndex」を使用するよりも"+"、"正常に動作します。

したがって、sqliteを使用している場合は、上記のデクレレーションを使用してください。ありがとう、Vinod

于 2012-05-11T06:52:41.740 に答える