Home Contact Us Feedback About Us

Code Example - Maintain Address Screen

Step 1) Create the Address Business Object


#Note: This code was already created for Search Customer and can be reused.

Step 2) Create the Address Maintenance Screen


#Note: This code was already created for Search Customer and can be reused.

Step 3) Register the Maintenance Screen with the Business Object

Step 4) Run Application

You now have a fully functioning maintenance screen that allows users to create and update customer address details.
Resulting Maintenance Screen in Rich Client Mode (Swing)

Resulting Maintenance Screen in Web Mode
Features and Functionality of the Maintenance Screen
  • screen layout
    • screen title
    • positioning and type of fields (e.g. text fields and drop lists)
    • field labels and corresponding float over text
    • data entry validations (format, type, size, etc...)
    • populating drop lists (combo boxes)
  • accept changes
    • validates the current address (e.g. mandatory fields and additional business rules)
    • applies the address changes to the customer
    • returns to the Maintain Customer screen
  • delete address
    • validates that the address can be deleted
    • requests user to confirm delete operation
    • removes the address from the customer
    • returns to the Maintain Customer screen
  • cancel
    • cancels changes and returns to previous screen
  • view previous/next address ("<<" & ">>" buttons)
    • displays the previous/next address based on the list of address in the Maintain Customer screen
  • new address
    • applies changes to current address (if any) and allows a new customer address to be entered
  • fields and buttons are visible/enabled based on: security rules, business rules and interaction rules
#Note: Refer to the tutorial for more detailed information about this code example.