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