I don't know why mails are replying here.
this is my second mail, sorry if first reply already recieved

First of all I will not prefer to assign the result directly to data
grid. Write a handler do the necessary processing with your result and
assign it desired component.
So here you need to assign the result Handler and in that write type
cast your result with a ArrayCollection of Flex because we don’t have
ArrayList here ��
Second, Create a FlexProductData.java equalent class, and type cast
your collection object with that and store in Array Collection and
assign this to your DataGrid.
        The processing is something like this.
        public function someResultHandler(event:ResultEvent):void{
        var myAc :ArrayCollection = new ArrayCollection();
        var fpd:FlexProductData = null;
        for(var i:int = 0;i< ArrayCollection(event.lastResult).length;i++){
                        fpd =
FlexProductData(ArrayCollection(event.lastResult).getItemAt(i));
                        myAc.addItem(fpd);
                }
        Urdg.dataProvider = myAc;

        }

Take care when you are creating your java Equalent AS class things to
be taken care are
Package structure, class name , properties, and data Types.
For equalent dataTypes you can see my blog post.
http://msimtiyaz.wordpress.com/2008/09/25/ss/


Regards,
Imtiyaz Basha M S

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to