`
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import spark.events.ViewNavigatorEvent;
protected var sqlConnection:SQLConnection;
protected function view1_viewActivateHandler(event:ViewNavigatorEvent):void
{
sqlConnection = new SQLConnection();
sqlConnection.open(File.applicationStorageDirectory.resolvePath("euro.db"));
getAllGiberish();
}
protected function getAllGiberish():void
{
var stmt:SQLStatement = new SQLStatement();
stmt.sqlConnection = sqlConnection;
stmt.text = "SELECT esteso FROM generale GROUP BY nazione, esteso HAVING nazione = 'Austria'";
stmt.execute();
list.dataProvider = new ArrayCollection(stmt.getResult().data);
}
]]>
</fx:Script>
<s:List id="list" x="4" y="5" width="306" height="274" />
因为我没有在列表中得到任何数据?我做错了什么?我在 generale 表 id、valore、moneta、esteso 中有 4 个字段