Example name: WDMF: Removing (deleting) a database record
Description: A trivial demonstration of WebORBData Management (WDM) for Flex (WDMF)'s approach to deleting a database record.
Prerequisites:
Client-side code: Browse  Download
Server-side code: (All generated and deployed by WebORB)
Feature availability:
  • WebORB for .NET Development Mode
  • WebORB for .NET Community Edition
  • WebORB for .NET Enterprise Edition
Run example:
Key points:
  • All server-side code, wrapping the FoodAndDrinks database, was generated by WebORB, as shown in the prerequisite screencast.
  • WebORB also generated client-side code, in the FAD_Client package of the client's src package, to provide the client-side interface to the server-side database (FoodAndDrinks).
  • grdProducts.dataprovider is bound to ActiveRecords.Product.findAll() (see main.mxml, lines 47-48), and all access to this data, in the UI, is through this dataprovider.
  • main.mxml, line 56: Definition of 'Delete' button, which calls OnDelete() when clicked.
  • main.mxml, lines 15-43: Definition of OnDelete() function, which deletes the DataGrid's slected item from the server-side database.
   
Things to try:
  • Study the sample's source code carefully.
See also:
Screencast: [none]
Errata:
  • None yet known.