RE: [flexcoders] Returning an object Array from .NET to Flex

2005-08-01 Thread Abdul Qabiz





Check out the object you are returning from server is in 
correct format ?

-abdul


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of priya sSent: 
Monday, August 01, 2005 10:22 AMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Returning an 
object Array from .NET to Flex

this did'nt seem to work ! :( the datagrid is still not getting 
populatedam i missing out on something???Sreejith 
Unnikrishnan [EMAIL PROTECTED] wrote: 
Here's 
  the code that works. Additions in red.?xml version="1.0" 
  encoding="utf-8"? 
  mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" 
  backgroundColor="#FF" 
  initialize="initApp()"
   
  mx:Script 
   var arrTest:Array;// don't 
  know if all this is required. function initApp() 
  {
   
  getArray(); 
  }
   
  function getArray() 
  { arrTest = 
  srv.GetData();
   
  }
  function initApp() 
  {srv.GetData.send();} 
  /mx:Script
   mx:RemoteObject id="srv" 
  source="RemoteTest.Sample" 
  mx:method name="GetData" result="arrTest=event.result" 
  / /mx:RemoteObject
   
  mx:Formmx:FormItem
   
  mx:DataGrid id="dg" width="100%" height="100%" dataProvider="{arrTest}" 
  /mx:DataGrid/mx:FormItem/mx:Form 
  /mx:ApplicationHope this helps!priya s 
  wrote: 
  
Hi all,
 Here's what I m trying to do  
1) In the following code snippet, the datagrid is not populated with 
the array I am returning from .NET. Where am I going wrong??
2)Any changes to be incorporated, if I am returning an array of 
objects, i.e other than the built in types??
.NET Class

using System;using FlashGateway.IO;using System.Xml;using 
System.Data;using System.Data.SqlClient;using System.IO;using 
System.Text;using System.Collections;
namespace RemoteTest{public class Sample 
{public object[] 
GetData(){ 
ArrayList list = new 
ArrayList();list.Add("string1");list.Add("string2");list.Add("string3");list.Add("string4");return 
list.ToArray();}}}?xml 
version="1.0" encoding="utf-8"?
mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" 
backgroundColor="#FF" 
initialize="initApp()"
 
mx:Script 
 var 
arrTest:Array; function 
initApp() {
 
getArray(); 
}
 function getArray() 
{ arrTest = 
srv.GetData();
 }
 /mx:Script
 mx:RemoteObject id="srv" 
source="RemoteTest.Sample" 
mx:method name="GetData"/ 
/mx:RemoteObject
 
mx:Formmx:FormItem
 
mx:DataGrid id="dg" width="100%" height="100%" 
dataProvider="{arrTest}" 
/mx:DataGrid/mx:FormItem/mx:Form 

/mx:ApplicationSreejith Unnikrishnan [EMAIL PROTECTED] 
wrote:
Priya, 
  you should add as much details you can, preferably with pieces of code 
  that you are willing to share (to help understand problem better) when 
  you ask a question.Because the short answer to your question is 
  NO.You are doing fine. That is indeed how you bind a result to a 
  datagrid.A better answer would need better detailed 
  question.RegardsSreepriya s wrote: no i m 
  not using web services. I am just making a call to a .NET 
  assembly. */Clint Modien [EMAIL PROTECTED]/* 
  wrote: Are you using 
  webservices? On 7/28/05, 
  *priya_uvce* [EMAIL PROTECTED] 
  mailto:[EMAIL PROTECTED] 
  wrote: Hi 
  all, I 
  want to return an object array from .NET to Flex, and bind 
  the datagrid with 
  the same. I have 
  created an Array variable in ActionScript which 
  will recieve 
  the object array 
  from .NET. I bind 
  this array variable to the 
  DataGrid. The 
  array I am returning is an array of objects of say an 
  Employee class 
  which I have created. This Employee class is 
  Serializable. Am I 
  missing out 
  something? 
  -- Flexcoders 
  Mailing List 
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups 
  Links 
  http://groups.yahoo.com/group/flexcoders/ 
  mailto:[EMAIL PROTECTED] 
  SPONSORED LINKS Computer software 
  testing http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg 
   Macromedia 
  flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g 
   Development 
  http://groups.yahoo.co

RE: [flexcoders] Returning an object Array from .NET to Flex

2005-08-01 Thread priya s



Correct format?? I am just returning an object[]

public object[] GetData(){ ArrayList list = new ArrayList();list.Add("string1");list.Add("string2");list.Add("string3");list.Add("string4");return list.ToArray();}Abdul Qabiz [EMAIL PROTECTED] wrote:


Check out the object you are returning from server is in correct format ?

-abdul


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of priya sSent: Monday, August 01, 2005 10:22 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Returning an object Array from .NET to Flex

this did'nt seem to work ! :( the datagrid is still not getting populatedam i missing out on something???Sreejith Unnikrishnan [EMAIL PROTECTED] wrote: 
Here's the code that works. Additions in red.?xml version="1.0" encoding="utf-8"? 
mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FF" initialize="initApp()"
 mx:Script  var arrTest:Array;// don't know if all this is required. function initApp() {
 getArray(); }
 function getArray() { arrTest = srv.GetData();
 }
function initApp() {srv.GetData.send();} /mx:Script
 mx:RemoteObject id="srv" source="RemoteTest.Sample" mx:method name="GetData" result="arrTest=event.result" / /mx:RemoteObject
 mx:Formmx:FormItem
 mx:DataGrid id="dg" width="100%" height="100%" dataProvider="{arrTest}" /mx:DataGrid/mx:FormItem/mx:Form /mx:ApplicationHope this helps!priya s wrote: 

Hi all,
 Here's what I m trying to do  
1) In the following code snippet, the datagrid is not populated with the array I am returning from .NET. Where am I going wrong??
2)Any changes to be incorporated, if I am returning an array of objects, i.e other than the built in types??
.NET Class

using System;using FlashGateway.IO;using System.Xml;using System.Data;using System.Data.SqlClient;using System.IO;using System.Text;using System.Collections;
namespace RemoteTest{public class Sample {
}}?xml version="1.0" encoding="utf-8"?
mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FF" initialize="initApp()"
 mx:Script  var arrTest:Array; function initApp() {
 getArray(); }
 function getArray() { arrTest = srv.GetData();
 }
 /mx:Script
 mx:RemoteObject id="srv" source="RemoteTest.Sample" mx:method name="GetData"/ /mx:RemoteObject
 mx:Formmx:FormItem
 mx:DataGrid id="dg" width="100%" height="100%" dataProvider="{arrTest}" /mx:DataGrid/mx:FormItem/mx:Form 
/mx:ApplicationSreejith Unnikrishnan [EMAIL PROTECTED] wrote:
Priya, you should add as much details you can, preferably with pieces of code that you are willing to share (to help understand problem better) when you ask a question.Because the short answer to your question is NO.You are doing fine. That is indeed how you bind a result to a datagrid.A better answer would need better detailed question.RegardsSreepriya s wrote: no i m not using web services. I am just making a call to a .NET assembly. */Clint Modien [EMAIL PROTECTED]/* wrote: Are you using webservices? On 7/28/05, *priya_uvce* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I want to return an object array from .NET to Flex, and bind the datagrid with the same. I have created an Array variable in ActionScript which will recieve the object array from .NET. I bind this array variable to the DataGrid. The array I am returning is an array of objects of say an
 Employee class which I have created. This Employee class is Serializable. Am I missing out something? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups
 Links http://groups.yahoo.com/group/flexcoders/ mailto:[EMAIL PROTECTED] SPONSORED LINKS Computer software testing http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg  Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g  Development http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q Software developer http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg
  Start your day with Yahoo! - make it your home page  http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs -- Flexco

Re: [flexcoders] Returning an object Array from .NET to Flex

2005-07-31 Thread priya s



this did'nt seem to work ! :( the datagrid is still not getting populatedam i missing out on something???Sreejith Unnikrishnan [EMAIL PROTECTED] wrote:
Here's the code that works. Additions in red.?xml version="1.0" encoding="utf-8"? 
mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FF" initialize="initApp()"
 mx:Script  var arrTest:Array;// don't know if all this is required. function initApp() {
 getArray(); }
 function getArray() { arrTest = srv.GetData();
 }
function initApp() {srv.GetData.send();} /mx:Script
 mx:RemoteObject id="srv" source="RemoteTest.Sample" mx:method name="GetData" result="arrTest=event.result" / /mx:RemoteObject
 mx:Formmx:FormItem
 mx:DataGrid id="dg" width="100%" height="100%" dataProvider="{arrTest}" /mx:DataGrid/mx:FormItem/mx:Form /mx:ApplicationHope this helps!priya s wrote: 

Hi all,
 Here's what I m trying to do  
1) In the following code snippet, the datagrid is not populated with the array I am returning from .NET. Where am I going wrong??
2)Any changes to be incorporated, if I am returning an array of objects, i.e other than the built in types??
.NET Class

using System;using FlashGateway.IO;using System.Xml;using System.Data;using System.Data.SqlClient;using System.IO;using System.Text;using System.Collections;
namespace RemoteTest{public class Sample {public object[] GetData(){ ArrayList list = new ArrayList();list.Add("string1");list.Add("string2");list.Add("string3");list.Add("string4");return list.ToArray();}}}?xml version="1.0" encoding="utf-8"?
mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FF" initialize="initApp()"
 mx:Script  var arrTest:Array; function initApp() {
 getArray(); }
 function getArray() { arrTest = srv.GetData();
 }
 /mx:Script
 mx:RemoteObject id="srv" source="RemoteTest.Sample" mx:method name="GetData"/ /mx:RemoteObject
 mx:Formmx:FormItem
 mx:DataGrid id="dg" width="100%" height="100%" dataProvider="{arrTest}" /mx:DataGrid/mx:FormItem/mx:Form 
/mx:ApplicationSreejith Unnikrishnan [EMAIL PROTECTED] wrote:
Priya, you should add as much details you can, preferably with pieces of code that you are willing to share (to help understand problem better) when you ask a question.Because the short answer to your question is NO.You are doing fine. That is indeed how you bind a result to a datagrid.A better answer would need better detailed question.RegardsSreepriya s wrote: no i m not using web services. I am just making a call to a .NET assembly. */Clint Modien [EMAIL PROTECTED]/* wrote: Are you using webservices? On 7/28/05, *priya_uvce* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I want to return an object array from .NET to Flex, and bind the datagrid with the same. I have created an Array variable in ActionScript which will recieve the object array from .NET. I bind this array variable to the DataGrid. The array I am returning is an array of objects of say an
 Employee class which I have created. This Employee class is Serializable. Am I missing out something? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups
 Links http://groups.yahoo.com/group/flexcoders/ mailto:[EMAIL PROTECTED] SPONSORED LINKS Computer software testing http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg  Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g  Development http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q Software developer http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg
  Start your day with Yahoo! - make it your home page  http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com  YAHOO! GROUPS LINKS * Visit your group "flexcoders http://groups.yahoo.com/group/flexcoders" on the web.  * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. 
__Do You Yahoo!?Tired of spam? Yahoo! 

Re: [flexcoders] Returning an object Array from .NET to Flex

2005-07-29 Thread priya s



Hi all,
 Here's what I m trying to do  
1) In the following code snippet, the datagrid is not populated with the array I am returning from .NET. Where am I going wrong??
2)Any changes to be incorporated, if I am returning an array of objects, i.e other than the built in types??
.NET Class

using System;using FlashGateway.IO;using System.Xml;using System.Data;using System.Data.SqlClient;using System.IO;using System.Text;using System.Collections;
namespace RemoteTest{public class Sample {public object[] GetData(){ ArrayList list = new ArrayList();list.Add("string1");list.Add("string2");list.Add("string3");list.Add("string4");return list.ToArray();}}}?xml version="1.0" encoding="utf-8"?
mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FF" initialize="initApp()"
 mx:Script  var arrTest:Array; function initApp() {
 getArray(); }
 function getArray() { arrTest = srv.GetData();
 }
 /mx:Script
 mx:RemoteObject id="srv" source="RemoteTest.Sample" mx:method name="GetData"/ /mx:RemoteObject
 mx:Formmx:FormItem
 mx:DataGrid id="dg" width="100%" height="100%" dataProvider="{arrTest}" /mx:DataGrid/mx:FormItem/mx:Form 
/mx:ApplicationSreejith Unnikrishnan [EMAIL PROTECTED] wrote:
Priya, you should add as much details you can, preferably with pieces of code that you are willing to share (to help understand problem better) when you ask a question.Because the short answer to your question is NO.You are doing fine. That is indeed how you bind a result to a datagrid.A better answer would need better detailed question.RegardsSreepriya s wrote: no i m not using web services. I am just making a call to a .NET assembly. */Clint Modien [EMAIL PROTECTED]/* wrote: Are you using webservices? On 7/28/05, *priya_uvce* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi
 all, I want to return an object array from .NET to Flex, and bind the datagrid with the same. I have created an Array variable in ActionScript which will recieve the object array from .NET. I bind this array variable to the DataGrid. The array I am returning is an array of objects of say an Employee class which I have created. This Employee class is Serializable. Am I missing out
 something? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links http://groups.yahoo.com/group/flexcoders/ mailto:[EMAIL PROTECTED] SPONSORED LINKS Computer software testing http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg  Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g  Development http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q Software developer http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg
  Start your day with Yahoo! - make it your home page  http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com  YAHOO! GROUPS LINKS * Visit your group "flexcoders http://groups.yahoo.com/group/flexcoders"
 on the web.  * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Returning an object Array from .NET to Flex

2005-07-29 Thread João Fernandes










Priya try this way,



?xml version=1.0
encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
 backgroundColor=#FF
 initialize=initApp()

 mx:Script
 
 var arrTest:Array;
 function initApp() {

srv.GetData();

}

 /mx:Script

 mx:RemoteObject
id=srv source=RemoteTest.Sample
 mx:method
name=GetData result=arrTest=event.result/
 /mx:RemoteObject

 mx:Form
mx:FormItem


mx:DataGrid id=dg width=100%
height=100% dataProvider={arrTest}

/mx:DataGrid
/mx:FormItem
/mx:Form 

/mx:Application



You should look for FAST (Flex Application Starter
Kit) here http://www.macromedia.com/devnet/flex/articles/fast_userguide.html ,
its a good way to debug your applications ;)





João Fernandes

Secção de Desenvolvimento

Departamento de Informática











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of priya s
Sent: sexta-feira, 29 de Julho de
2005 13:12
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Returning an object Array from .NET to Flex







Hi all,





 Here's what I m trying to do  





1) In the following code snippet, the datagrid is not populated with
the array I am returning from .NET. Where am I going wrong??





2)Any changes to be incorporated, if I am returning an array of
objects, i.e other than the built in types??





.NET Class











using System;
using FlashGateway.IO;
using System.Xml;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Text;
using System.Collections;






namespace RemoteTest
{
public class Sample 
{
public object[] GetData()
{
 
ArrayList list = new ArrayList();
list.Add(string1);
list.Add(string2);
list.Add(string3);
list.Add(string4);
return list.ToArray();
}
}
}

?xml version=1.0 encoding=utf-8?





mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
 backgroundColor=#FF
 initialize=initApp()





 mx:Script
 
 var arrTest:Array;
 function initApp() {






getArray();

}





 function getArray() {
 arrTest =
srv.GetData();





 }





 /mx:Script





 mx:RemoteObject id=srv
source=RemoteTest.Sample
 mx:method
name=GetData/
 /mx:RemoteObject





 mx:Form
mx:FormItem






mx:DataGrid id=dg width=100%
height=100% dataProvider={arrTest}

/mx:DataGrid
/mx:FormItem
/mx:Form 





/mx:Application

Sreejith Unnikrishnan
[EMAIL PROTECTED] wrote:





Priya, you should add as much
details you can, preferably with pieces of 
code that you are willing to share (to help
understand problem better) 
when you ask a question.

Because the short answer to your question is NO.
You are doing fine. That is indeed how you bind a
result to a datagrid.

A better answer would need better detailed
question.

Regards
Sree

priya s wrote:

 no i m not using web services. I am just
making a call to a .NET assembly.

 */Clint Modien [EMAIL PROTECTED]/*
wrote:

 Are you using
webservices?

 On 7/28/05,
*priya_uvce* [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED] wrote:


Hi all,

I want to return an object array from .NET to Flex, and bind the

datagrid with the same.

I have created an Array variable in ActionScript which will

recieve the

object array from .NET.

I bind this array variable to the DataGrid.

The array I am returning is an array of objects of say an Employee

class which I have created. This Employee class is Serializable.

Am I missing out something?








--

Flexcoders Mailing List

FAQ:

http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives:

http://www.mail-archive.com/flexcoders%40yahoogroups.com

Yahoo! Groups Links


http://groups.yahoo.com/group/flexcoders/


mailto:[EMAIL PROTECTED]







 SPONSORED LINKS
 Computer software
testing
 http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg

 Macromedia flex
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g

 Development
 http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q

 Software developer
 http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg




 Start your day with Yahoo! - make it your
home page 
 http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com


 
 YAHOO! GROUPS LINKS

 * Visit your
group flexcoders
 http://groups.yahoo.com/group/flexcoders
on the web.
 
 * To unsubscribe
from

RE: [flexcoders] Returning an object Array from .NET to Flex

2005-07-29 Thread Dirk Eismann
First of all, the RemoteObject will excute asynchronously so you cannot
assign srv.GetData() directly to your arrTest Array. You'll need to
setup a result handler for your RemoteObject. Inside the result handler
you can access the returned data.

Something like this (not tested but should give you a start)

...
 mx:Script  
  var arrTest:Array;
  
  function initApp():Void {
getArray();
  }
  
  function getArray():Void {
srv.GetData();
  }

  function onGetData(event:Object):Void {
arrTest = event.result;
  }
 /mx:Script
 mx:RemoteObject id=srv source=RemoteTest.Sample
   mx:method name=GetData result=onGetData(event) /
 /mx:RemoteObject
...

Dirk.


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of priya s
Sent: Friday, July 29, 2005 2:12 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Returning an object Array from .NET to Flex


Hi all,
  Here's what I m trying to do  
1) In the following code snippet, the datagrid is not populated with the
array I am returning from .NET. Where am I going wrong??
2) Any changes to be incorporated, if I am returning an array of
objects, i.e other than the built in types??
.NET Class
 
using System;
using FlashGateway.IO;
using System.Xml;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Text;
using System.Collections;

namespace RemoteTest
{
 public class Sample 
 {
  public object[] GetData()
  {
   
   ArrayList list = new ArrayList();
   list.Add(string1);
   list.Add(string2);
   list.Add(string3);
   list.Add(string4);
   return list.ToArray();
  }
 }
}

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
backgroundColor=#FF
initialize=initApp()
mx:Script
   
   var arrTest:Array;
function initApp() {
getArray();
}
function getArray() {
   arrTest = srv.GetData();
  }
/mx:Script
mx:RemoteObject id=srv source=RemoteTest.Sample
mx:method name=GetData/
/mx:RemoteObject
mx:Form
 mx:FormItem
  mx:DataGrid id=dg width=100% height=100%
dataProvider={arrTest}
/mx:DataGrid
/mx:FormItem
/mx:Form  
/mx:Application

Sreejith Unnikrishnan [EMAIL PROTECTED] wrote:

Priya, you should add as much details you can, preferably with
pieces of 
code that you are willing to share (to help understand problem
better) 
when you ask a question.

Because the short answer to your question is NO.
You are doing fine. That is indeed how you bind a result to a
datagrid.

A better answer would need better detailed question.

Regards
Sree

priya s wrote:

 no i m not using web services. I am just making a call to a
.NET assembly.

 */Clint Modien [EMAIL PROTECTED]/* wrote:

 Are you using webservices?

 On 7/28/05, *priya_uvce* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Hi all,
   I want to return an object array from .NET to Flex,
and bind the
 datagrid with the same.
 I have created an Array variable in ActionScript which
will
 recieve the
 object array from .NET.
 I bind this array variable to the DataGrid.
 The array I am returning is an array of objects of say
an Employee
 class which I have created. This Employee class is
Serializable.
 Am I missing out something?







 --
 Flexcoders Mailing List
 FAQ:

http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:

http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links

 http://groups.yahoo.com/group/flexcoders/

 mailto:[EMAIL PROTECTED]







 SPONSORED LINKS
 Computer software testing

http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Comput
er+software+testingw2=Macromedia+flexw3=Developmentw4=Software+develo
perc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg
   Macromedia flex

http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+softwar
e+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=
93.sig=dAUcEV7do91-wrRtVS641g
   Development

http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+te
stingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.
sig=AlxNUQBOI7Io7S7nhmxV0Q

 Software developer

http

RE: [flexcoders] Returning an object Array from .NET to Flex

2005-07-29 Thread Philippe Maegerman





Don't you need an array of objects for the 
datagrid?

Philippe 
Maegerman


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of priya sSent: 
vendredi 29 juillet 2005 14:12To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Returning an 
object Array from .NET to Flex

Hi all,
 Here's what I m trying to do  
1) In the following code snippet, the datagrid is not populated with the 
array I am returning from .NET. Where am I going wrong??
2)Any changes to be incorporated, if I am returning an array of 
objects, i.e other than the built in types??
.NET Class

using System;using FlashGateway.IO;using System.Xml;using 
System.Data;using System.Data.SqlClient;using System.IO;using 
System.Text;using System.Collections;
namespace RemoteTest{public class Sample 
{public object[] 
GetData(){ 
ArrayList list = new 
ArrayList();list.Add("string1");list.Add("string2");list.Add("string3");list.Add("string4");return 
list.ToArray();}}}?xml version="1.0" 
encoding="utf-8"?
mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" 
backgroundColor="#FF" initialize="initApp()"
 
mx:Script 
 var 
arrTest:Array; function initApp() 
{
 
getArray(); 
}
 function getArray() 
{ arrTest = 
srv.GetData();
 }
 /mx:Script
 mx:RemoteObject id="srv" 
source="RemoteTest.Sample" 
mx:method name="GetData"/ 
/mx:RemoteObject
 
mx:Formmx:FormItem
 
mx:DataGrid id="dg" width="100%" height="100%" 
dataProvider="{arrTest}" 
/mx:DataGrid/mx:FormItem/mx:Form 

/mx:ApplicationSreejith Unnikrishnan 
[EMAIL PROTECTED] wrote:
Priya, 
  you should add as much details you can, preferably with pieces of code 
  that you are willing to share (to help understand problem better) when you 
  ask a question.Because the short answer to your question is NO.You 
  are doing fine. That is indeed how you bind a result to a datagrid.A 
  better answer would need better detailed 
  question.RegardsSreepriya s wrote: no i m not 
  using web services. I am just making a call to a .NET 
  assembly. */Clint Modien [EMAIL PROTECTED]/* 
  wrote: Are you using 
  webservices? On 7/28/05, *priya_uvce* 
  [EMAIL PROTECTED] 
  mailto:[EMAIL PROTECTED] 
  wrote: Hi 
  all, I 
  want to return an object array from .NET to Flex, and bind 
  the datagrid with the 
  same. I have created 
  an Array variable in ActionScript which 
  will recieve 
  the object array from 
  .NET. I bind this 
  array variable to the 
  DataGrid. The array I 
  am returning is an array of objects of say an 
  Employee class which I 
  have created. This Employee class is 
  Serializable. Am I 
  missing out 
  something? 
  -- Flexcoders Mailing 
  List 
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups 
  Links http://groups.yahoo.com/group/flexcoders/ 
  mailto:[EMAIL PROTECTED] 
  SPONSORED LINKS Computer software 
  testing http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg 
   Macromedia flex 
  http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g 
   Development 
  http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q 
  Software developer http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg 
   
  Start your day with Yahoo! - make it your home page  http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs 
  -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
   
  YAHOO! GROUPS LINKS * Visit your 
  group "flexcoders http://groups.yahoo.com/group/flexcoders" 
  on the web. 
   * To unsubscribe from this group, send 
  an email to: 
  [EMAIL PROTECTED] 
  mailto:[EMAIL PROTECTED] 
   * Your use of Yahoo! Groups is subject 
  to the Yahoo! Terms of Service 
  http://docs.yahoo.com/info/terms/. 
  
__Do You Yahoo!?Tired 
of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.m

Re: [flexcoders] Returning an object Array from .NET to Flex

2005-07-29 Thread Sreejith Unnikrishnan






Here's the code that works. Additions in red.

?xml version="1.0" encoding="utf-8"?
mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
 backgroundColor="#FF"
 initialize="initApp()"
 mx:Script
 
 var arrTest:Array;

// don't know if all this is required.
 function initApp() {
 getArray();
 }
 function getArray() {
 arrTest = srv.GetData();
 }

function initApp() {
srv.GetData.send();
}

 /mx:Script
 mx:RemoteObject id="srv" source="RemoteTest.Sample"
 mx:method name="GetData" result="arrTest=event.result"
/
 /mx:RemoteObject
 mx:Form
mx:FormItem
 mx:DataGrid id="dg" width="100%" height="100%" dataProvider="{arrTest}"
 /mx:DataGrid
/mx:FormItem
/mx:Form 
/mx:Application


Hope this helps!

priya s wrote:

  Hi all,
   Here's what I m trying to do  
  1) In the following code snippet, the datagrid is not populated
with the array I am returning from .NET. Where am I going wrong??
  2)Any changes to be incorporated, if I am returning an array of
objects, i.e other than the built in types??
  .NET Class
  
  using System;
using FlashGateway.IO;
using System.Xml;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Text;
using System.Collections;
  
namespace RemoteTest
{
public class Sample 
{
public object[] GetData()
{
 
ArrayList list = new ArrayList();
list.Add("string1");
list.Add("string2");
list.Add("string3");
list.Add("string4");
return list.ToArray();
}
}
}
  
?xml version="1.0" encoding="utf-8"?
  mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
 backgroundColor="#FF"
 initialize="initApp()"
   mx:Script
 
 var arrTest:Array;
 function initApp() {
   getArray();
 }
   function getArray() {
 arrTest = srv.GetData();
   }
   /mx:Script
   mx:RemoteObject id="srv" source="RemoteTest.Sample"
 mx:method name="GetData"/
 /mx:RemoteObject
   mx:Form
mx:FormItem
   mx:DataGrid id="dg" width="100%" height="100%"
dataProvider="{arrTest}"
 /mx:DataGrid
/mx:FormItem
/mx:Form 
  /mx:Application
  
  Sreejith Unnikrishnan [EMAIL PROTECTED] wrote:
  Priya,
you should add as much details you can, preferably with pieces of 
code that you are willing to share (to help understand problem better) 
when you ask a question.

Because the short answer to your question is NO.
You are doing fine. That is indeed how you bind a result to a datagrid.

A better answer would need better detailed question.

Regards
Sree

priya s wrote:

 no i m not using web services. I am just making a call to a .NET
assembly.

 */Clint Modien [EMAIL PROTECTED]/* wrote:

 Are you using webservices?

 On 7/28/05, *priya_uvce* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Hi all,
 I want to return an object array from .NET to Flex, and
bind the
 datagrid with the same.
 I have created an Array variable in ActionScript which will
 recieve the
 object array from .NET.
 I bind this array variable to the DataGrid.
 The array I am returning is an array of objects of say an
Employee
 class which I have created. This Employee class is
Serializable.
 Am I missing out something?







 --
 Flexcoders Mailing List
 FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links

 http://groups.yahoo.com/group/flexcoders/

 mailto:[EMAIL PROTECTED]







 SPONSORED LINKS
 Computer software testing
 http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg
  Macromedia flex
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g
  Development
 http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q

 Software developer
 http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg




 Start your day with Yahoo! - make it your home page 
 http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




 YAHOO! GROUPS LINKS

 * Visit your group "flexcoders
 http://groups.yahoo.com/group/flexcoders"
on the web.
 
 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]
 
 * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/.








  

RE: [flexcoders] Returning an object Array from .NET to Flex

2005-07-29 Thread priya s



This will show a compile time error "Type Mismatch"...event result is of type object ;)João Fernandes [EMAIL PROTECTED] wrote:







Priya try this way,

?xml version="1.0" encoding="utf-8"?
mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FF" initialize="initApp()"
 mx:Script  var arrTest:Array; function initApp() {
srv.GetData(); }
 /mx:Script
 mx:RemoteObject id="srv" source="RemoteTest.Sample" mx:method name="GetData" result=”arrTest=event.result”/ /mx:RemoteObject
 mx:Formmx:FormItem
 mx:DataGrid id="dg" width="100%" height="100%" dataProvider="{arrTest}" /mx:DataGrid/mx:FormItem/mx:Form 
/mx:Application
You should look for FAST (Flex Application Starter Kit) here http://www.macromedia.com/devnet/flex/articles/fast_userguide.html , it’s a good way to debug your applications ;)


João Fernandes
Secção de Desenvolvimento
Departamento de Informática




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of priya sSent: sexta-feira, 29 de Julho de 2005 13:12To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Returning an object Array from .NET to Flex


Hi all,

 Here's what I m trying to do  

1) In the following code snippet, the datagrid is not populated with the array I am returning from .NET. Where am I going wrong??

2)Any changes to be incorporated, if I am returning an array of objects, i.e other than the built in types??

.NET Class



using System;using FlashGateway.IO;using System.Xml;using System.Data;using System.Data.SqlClient;using System.IO;using System.Text;using System.Collections;

namespace RemoteTest{public class Sample {public object[] GetData(){ ArrayList list = new ArrayList();list.Add("string1");list.Add("string2");list.Add("string3");list.Add("string4");return list.ToArray();}}}?xml version="1.0" encoding="utf-8"?

mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FF" initialize="initApp()"

 mx:Script  var arrTest:Array; function initApp() {

 getArray(); }

 function getArray() { arrTest = srv.GetData();

 }

 /mx:Script

 mx:RemoteObject id="srv" source="RemoteTest.Sample" mx:method name="GetData"/ /mx:RemoteObject

 mx:Formmx:FormItem

 mx:DataGrid id="dg" width="100%" height="100%" dataProvider="{arrTest}" /mx:DataGrid/mx:FormItem/mx:Form 

/mx:ApplicationSreejith Unnikrishnan [EMAIL PROTECTED] wrote:

Priya, you should add as much details you can, preferably with pieces of code that you are willing to share (to help understand problem better) when you ask a question.Because the short answer to your question is NO.You are doing fine. That is indeed how you bind a result to a datagrid.A better answer would need better detailed question.RegardsSreepriya s wrote: no i m not using web services. I am just making a call to a .NET assembly. */Clint Modien [EMAIL PROTECTED]/* wrote: Are you using webservices? On 7/28/05, *priya_uvce* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I want to return an object array from .NET to Flex, and bind
 the datagrid with the same. I have created an Array variable in ActionScript which will recieve the object array from .NET. I bind this array variable to the DataGrid. The array I am returning is an array of objects of say an Employee class which I have created. This Employee class is
 Serializable. Am I missing out something? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links http://groups.yahoo.com/group/flexcoders/
 mailto:[EMAIL PROTECTED] SPONSORED LINKS Computer software testing http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg  Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g  Development http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q Software developer http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg  Start your day with Yahoo! - make it your home page  http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive

[flexcoders] Returning an object Array from .NET to Flex

2005-07-28 Thread priya_uvce
Hi all,
  I want to return an object array from .NET to Flex, and bind the 
datagrid with the same.
I have created an Array variable in ActionScript which will recieve the 
object array from .NET.
I bind this array variable to the DataGrid.
The array I am returning is an array of objects of say an Employee 
class which I have created. This Employee class is Serializable.
Am I missing out something? 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Returning an object Array from .NET to Flex

2005-07-28 Thread Clint Modien



Are you using webservices?On 7/28/05, priya_uvce [EMAIL PROTECTED] wrote:
Hi all,I want to return an object array from .NET to Flex, and bind thedatagrid with the same.I have created an Array variable in ActionScript which will recieve theobject array from .NET.I bind this array variable to the DataGrid.
The array I am returning is an array of objects of say an Employeeclass which I have created. This Employee class is Serializable.Am I missing out something?--Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Returning an object Array from .NET to Flex

2005-07-28 Thread priya s



no i m not using web services. I am just making a call to a .NET assembly.Clint Modien [EMAIL PROTECTED] wrote:
Are you using webservices?
On 7/28/05, priya_uvce [EMAIL PROTECTED] wrote:
Hi all,I want to return an object array from .NET to Flex, and bind thedatagrid with the same.I have created an Array variable in ActionScript which will recieve theobject array from .NET.I bind this array variable to the DataGrid. The array I am returning is an array of objects of say an Employeeclass which I have created. This Employee class is Serializable.Am I missing out something?--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go
 to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
SPONSORED LINKS 



Computer software testing 
Macromedia flex 
Development 

Software developer 
		 Start your day with Yahoo! - make it your home page 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Returning an object Array from .NET to Flex

2005-07-28 Thread Sreejith Unnikrishnan
Priya, you should add as much details you can, preferably with pieces of 
code that you are willing to share (to help understand problem better) 
when you ask a question.

Because the short answer to your question is NO.
You are doing fine. That is indeed how you bind a result to a datagrid.

A better answer would need better detailed question.

Regards
Sree

priya s wrote:

 no i m not using web services. I am just making a call to a .NET assembly.

 */Clint Modien [EMAIL PROTECTED]/* wrote:

 Are you using webservices?

 On 7/28/05, *priya_uvce* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Hi all,
   I want to return an object array from .NET to Flex, and bind the
 datagrid with the same.
 I have created an Array variable in ActionScript which will
 recieve the
 object array from .NET.
 I bind this array variable to the DataGrid.
 The array I am returning is an array of objects of say an Employee
 class which I have created. This Employee class is Serializable.
 Am I missing out something?







 --
 Flexcoders Mailing List
 FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links

 http://groups.yahoo.com/group/flexcoders/

 mailto:[EMAIL PROTECTED]







 SPONSORED LINKS
 Computer software testing
 
 http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg
   Macromedia flex
 
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g
   Development
 
 http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q

 Software developer
 
 http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg


 
 Start your day with Yahoo! - make it your home page 
 http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com


 
 YAHOO! GROUPS LINKS

 *  Visit your group flexcoders
   http://groups.yahoo.com/group/flexcoders on the web.

 *  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]

 *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
   Service http://docs.yahoo.com/info/terms/.


 





 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hferuu0/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122621988/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/