开发者

Obtain DataTable names from Flex

I have a C# web service that returns a DataSet with multiple DataTables. It's easy enough to get at the data using this web service event 开发者_运维知识库handler in Flex:

static public function getData_Handler(event:ResultEvent):void 
{
    for each(var table:Object in event.result.Tables)
    {
        // ...
    }
}

How can I access the name of each DataTable from Flex? When debugging, it's clear that each DataTable's name gets mapped to a property on the event.result.Tables object, but I don't see a programmatic way to get a string representation of the name.


I don't think they will be available separately in the result object. The best way to get them is to loop through an item of the result objects with a for...in loop and then read the column names from there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜