blog
{Some Little News}
VR
{Virtual Reality}
media
{Photos + Videos}
code
{Websites + Apps}
5core
{Five Core}
Data management in Flex 4
If you have already experienced Flash Builder 4 beta 2, you have probably noticed the new Data/Services feature on wich Adobe has put a lot of efforts. Using its wizard it is straightforward how to connect to a database, but there is someting more, at least something I just discovered recently: the data management.
In brief, after creating your service and binding it to a component (i.e. an editable DataGrid) you are able to edit, to add and to delete data as usual; but you can decide to commit the changes or not at the end! This is great, it means you can create even more rich applications vith very little effort, thanks Adobe.
Here a very basic tutorial that shows how to use this feature. But mainly the commands you’ll need to know are:
employeeService.commit(); // to commit all the canges employeeService.getDataManager(employeeService.DATA_MANAGER_EMPLOYEE).revertChanges(); //to revert the changes







I can’t get my flex 4 data management to work with cf8. Can you help me set this up?
Thanks
Chaz