What we do in Cairngorm:
- bind DataGrid to ModelLocator
- refresh button fires off Command to call
WebService
- when Delegate comes back, Command puts data on
ModelLlocator
- this fires the bindings and the DataGrid to
update
If you click the button again, the above
repeats.
----- Original Message -----
From: Ken Bromberger
Sent: Thursday, July 20, 2006 12:22 PM
Subject: [flexcoders] Datagrid/Webservices - best
practice?? Hello
All, If I have a web service operation
that populates a datagrid and an operation in the same web service that inserts
a record, what would be the best way to then get the initial web service to
refresh the data grid when an insert has occurred and an identity result has
been successfully sent back?? I know there are a lot of ways to handle data in
Flex, but I am unclear on what the best methods are for keeping the data fresh
on the client
any tips would be appreciated!! (If you havent guessed, Im new
to Flex) Thanks!
-Ken -- 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
YAHOO! GROUPS LINKS
|