Example name: Simple CRUD
Description: The simplest-possible demonstration of WebORB Data Management's support for database CRUD operations.
Prerequisites: Your First WebORB Data Management (WDM) for Flex Application
Client-side code: Browse  Download
Server-side code: [generated by WebORB; see videos below]
Feature availability:
  • WebORB for .NET Development Mode
  • WebORB for .NET Community Edition
  • WebORB for .NET Enterprise Edition
Run example:
Key points:
  • WebORB Data Management generates a simple, object-oriented API for your table-based (relational) data.
  • Query functions, such as findAll(), synchronously return an empty ArayCollection, which is asynchronously populated with the query result data.
  • If a query result is assigned to a bindable variable (such as _searchResult), and a UI element's dataprovider is bound to that variable, then the UI element will be updated whenever the variable's contents change..for example, when its is populated with the query's asynchronous results.
  • CRUD operations which must all succeed or fail as a single unit can be grouped into a single UnitOfWork (see main.mxml's onUpdate() method).
  • This sample was created for use in a webinar; see the videos of that webinar below.
   
Things to try:
  • Add code to onUpdate() to handle failed commit operations, and then force such a failure by attempting to update a non-existent Product. What happens?
See also: WebORB: Data Management Overview
Screencast: WebORB Webinar: WebORB Data Management
Errata:
  • None yet known.