Oops, sent this to Sathish directly by accident:

 

If your data comes in using one format and must go out using another format you *must* loop through and convert.  Even if we provided utility code it would still end up doing the loop.  But listen, receiving and sending 20,000 rows is a bad idea from the start, you should look into factoring your data and business logic in other ways.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Sathish K
Sent: Wednesday, February 22, 2006 9:11 PM
To: [email protected]; Matt Chotin
Subject: RE: [flexcoders] Binding Data to DataGrid from webservice response

 

actually my problem is

 

their will two webservices

    1. one for fetching data from the database and  filling the datagrid.

            example:  <response>
                            <data>
                                <Name>sathish</Name>
                                <Address>Chennai</Address>
                        </data>
                        <data>
                                <Name>selva</Name>
                                <Address>delhi</Address>
                        </data>
                    </response>

    2. anothor for saving the data to the database whch gets data from the grid

            example : <request>

                                <data>

                                    <username>sathish</username>

                                    <location>Chennai</location>

                                </data>

                                <data>

                                    <username>selva</username>

                                    <location>delhi</location>

                                </data>

                            </request>

 

 

both the webservice access the same datagrid with the given column names

 

Now how i will bind data and get it back.......

as mention earlier the data will huge one so i can't able loop through it.

 

regards

sathish

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Matt Chotin
Sent: 22 February 2006 11:06
To: [email protected]
Subject: RE: [flexcoders] Binding Data to DataGrid from webservice response

columnName can be "Name" and headerText can be "Column 1".  You could
also use a labelFunction if you really needed to.

Matt

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of sathish_kumar_18
Sent: Tuesday, February 21, 2006 1:47 AM
To: [email protected]
Subject: [flexcoders] Binding Data to DataGrid from webservice response


How to bind data from webservice response...
if the column name in the grid is different and child tag in response
is different...
i cannot able to loop through the data because the response would
contains huge data of 20000 rows..


example
if webservice response is
    <response>
            <data>
                    <Name>sathish</Name>
                    <Address>Chennai</Address>
            </data>
            <data>
                    <Name>selva</Name>
                    <Address>delhi</Address>
            </data>
    </response>




    <mx:VBox> 
      <mx:DataGrid id="dg1" dataProvider="{response.data}">
         <mx:columns>
            <mx:Array>
               <mx:DataGridColumn columnName="Column1" />
               <mx:DataGridColumn columnName="Column2" />
            </mx:Array>
         </mx:columns>  
    </mx:DataGrid>
</mx:VBox>


regards
sathish





--
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









--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




DISCLAIMER:

Information transmitted by this e-mail may be proprietary to Ramco Systems Ltd., and / or the authors of the information and is intended for use only by the individual or entity to which it is addressed, and may contain confidential or legally privileged information. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are not authorised to access, read, disclose, copy, use or otherwise deal with it and any such actions are prohibited and may be unlawful.

Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses. Ramco Systems Limited therefore does not accept liability for any errors, omissions, viruses or computer problems experienced as a result of this transmission.

If you have received this e-mail in error, please notify us immediately at mail to: [EMAIL PROTECTED] and delete this mail from your records. Notice is hereby given that no representation, contract or other binding obligation shall be created by this e-mail.

Reply via email to