You can pass an array to the datagrid's dp
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of aceoohay
Sent: Saturday, October 27, 2007 8:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I convert an object to an arrayCollection?
I am testing fluorine by accessing an Oracle database using ASP.NET
(VB). In flex builder I have done a breakpoint to look at the object
returned. Below is the debug info about the object;
=
this = main (@35050a1)
event = Object (@3444d81)
PERSON = Object (@3444f21)
serverInfo = Object (@34449a1)
columnNames = Array (@3617a91)
[0] = "PERSON_NUMBER"
[1] = "PERSON_NAME"
[2] = "PERSON_ORIG_NUMBER"
[3] = "PERSON_SSN"
[4] = "PERSON_DATE"
[5] = "PERSON_PERSON_STATUS"
length = 6
cursor = 1
id = null
initialData = Array (@33d7131)
[0] = Array (@34200a1)
[0] = 1504 [0x5e0]
[1] = "SMITH, JOHN"
[2] = 921504 [0xe0fa0]
[3] = "123456789"
[4] = Date (@344ee99)
[5] = "D"
length = 6
[1] = Array (@3518581)
[2] = Array (@3518791)
[3] = Array (@3518911)
[4] = Array (@3518f41)
[5] = Array (@35184f1)
[6] = Array (@3518851)
[7] = Array (@3518be1)
[8] = Array (@3518b81)
[9] = Array (@35183d1)
[10] = Array (@3518f71)
[11] = Array (@3518d91)
[12] = Array (@3518a91)
[13] = Array (@3518701)
[14] = Array (@3518671)
[15] = Array (@35185b1)
[16] = Array (@3458bb1)
[17] = Array (@3458b21)
[18] = Array (@3458b81)
[19] = Array (@3458a61)
[20] = Array (@3458611)
[21] = Array (@3458641)
[22] = Array (@3458311)
[23] = Array (@3617d01)
[24] = Array (@3617cd1)
[25] = Array (@3617c71)
[26] = Array (@3617bb1)
[27] = Array (@3617c41)
[28] = Array (@3617c11)
[29] = Array (@3617be1)
[30] = Array (@3617af1)
[31] = Array (@3617ac1)
length = 32 [0x20]
serviceName
= "com.TheSilentGroup.Fluorine.PageableResult"
totalCount = 32 [0x20]
version = 1
objIn = Array (@33d7131)
=
ColumnNames contains the list of the column names from the query, and
initialData contains the actual data as an array of arrays.
What I am trying to do with this is to populate a dataGrid. Any
thoughts on how to map one of the above type objects to an array
collection?
BTW, I am returning a dataSet Object from ASP.NET (VB) like so;
objDS = New DataSet("DataSet")
objDS.Tables.Add("Ward")
objDA.Fill(objDS, "Ward")
Return objDS
The final goal of this exercise is to come up with a method of
converting all of my existing HTTPService type requests to Fluorine,
and I have been returning XML from the HTTPService. I am trying to
eliminate XML in these requests due to its verbocity (trying to
reduce network traffic).
Paul