RE: [flexcoders] How do I convert an object to an arrayCollection?

2007-10-29 Thread Samuel R. Neff
Paul,

I don't think you should have to do any conversion, recent versions of
Fluorine support sending DataSet and DataTable objects to Flex and are
normally received as an ArrayCollection of Objects (optionally it can
specify typed objects).  

The object structure you're seeing is what I've seen .NET send for web
services.. are you using Fluorine to talk to an assembly directly or are you
talking to a web service?  If web service then change your call to use the
assembly directly (it's more efficient).

If that's not the problem then I'd suggest posting on the Fluorine mailing
list as there are many people there that can answer your question (I haven't
worked with DataSet/DataTable integration in Fluorine personally).

http://fluorine.thesilentgroup.com/fluorine/index.html

HTH,

Sam



---
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of aceoohay
Sent: Saturday, October 27, 2007 11: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"
...

Paul




RE: [flexcoders] How do I convert an object to an arrayCollection?

2007-10-27 Thread Alex Harui
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