Home Contact Us Feedback About Us

Code Example - Search Book Screen

Step 1) Create the Business Object

(a) declare the attributes as defined in the business object model
(b) define additional characteristics about the attributes; e.g. short description (label), mandatory indicator, long description (float over), size, format, etc...

Step 2) Create the Search Screen

(a) define the target business object (i.e. object being searched for)
(b) define the fields to be included in the search criteria (including positioning)
(c) define the fields to be included in the result set

Step 3) Register the Search Screen with the Business Object

(a) ensures the search book screen is displayed when the user wants to search for a book

Step 4) Run Application

You now have a fully functioning search screen that allows users to search for books. Note that you did not have to code any SQL or SQL-like statements in order to achieve this.
Resulting Search Screen in Rich Client Mode (using Swing)

Resulting Search Screen in Web Mode
Features and Functionality of the Search Screen
  • screen layout
    • screen title
    • positioning and type of fields and columns
    • field/column labels and corresponding float over text
    • data entry validations (format, type, size, etc...)
  • search book
    • displays books which match criteria entered
    • includes wildcard searching
  • clear (reset) search
    • clears all criteria fields and clears results from previous search
  • view book details (folder button)
    • displays the Maintain Book screen for the selected book
  • add book ("+" button)
    • allows users to create new books using the Maintain Book screen
  • delete book ("–" button)
    • validates that the book can be deleted
    • requests user to confirm delete operation
    • deletes the current book
  • cancel
    • returns to previous screen
#Note: Refer to the tutorial for more detailed information about this code example.