0

データ オブジェクトで navigator.pushView を実行した後、データ オブジェクトを次のビューに受け取る必要がありますが、ある段階で文字列に変換して SQL 関数で使用します。以下のコードは、私が現在取り組んでいることを示しています。

<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark" title="{data.toString()}"
    xmlns:model="model.*"
    creationComplete  = "{data=srv.findByCategory(data.toString())}"
    >

.toString() は私の簡単な試みでしたが、結果の出力は単純です

[オブジェクト オブジェクト]

エラーはありませんが、デバッグ中にのみ表示されます。

何か案は?


付属物として、データオブジェクトが発生した最初のビューのコードを次に示します

<s:List id="list" top="0" bottom="0" left="0" right="0" width="100%"
        alternatingItemColors="0xffffff"
        contentBackgroundColor="0xffffff"
        downColor="0xfc7d1a"
        selectionColor="0xfc7d1a"           
        dataProvider="{data}"
        labelFunction="getFullName"
        change="navigator.pushView(CategoryView, list.selectedItem.toString())">

データ オブジェクトを文字列にする必要があるコードの一部を次に示します。

public function findByCategory(searchKey:String):ArrayCollection
        {
}
4

1 に答える 1