Database application development is a feature of JBuilder Professional and Enterprise. Distributed application development is a feature of JBuilder Enterprise.
This chapter describes a sample database application developed using DataExpress components and the JBuilder design tools. Where necessary, the code generated by the design tools was modified to provide custom behavior. There are no tutorial steps on this application as it is intended to consolidate the individual how to topics discussed elsewhere in this book.
The completed files for this sample application are included in the /samples/DataExpress/BasicApp subdirectory of your JBuilder installation under the project name BasicApp.jpr. The file BasicApp.html contains updated information on this sample application. If you experience problems running this application, see "JBuilder sample files" for information critical to this process. (If you downloaded JBuilder, you also need to download the Samples Pack in order to have this sample.)
This application demonstrates the following functionality:
Database
and QueryDataSet
components. (See "Connecting to a database" and "Querying a database".)
Contains a JdbTable
which displays the the data while also demonstrating the following features:
JdbTable
using display masks (the HIRE_DATE column). (See "Adding an edit or display pattern for data formatting".)
JdbStatusLabel
control that displays navigation information, data validation messages, and so on.
Messages are written to the JdbStatusLabel
control when appropriate, or when instructed programmatically. (See "Displaying status information".)
JdbNavToolBar
for easy navigation through the data displayed in the table.
JdbNavField
which is embedded in the JdbNavToolBar
. For more information on locating data, see "Locating data".
DBDisposeMonitor
to automatically close the database connection when the frame is closed.
QueryDataSet
by using default resolver behavior. (See "Basic resolving".) The Save button of the JdbNavToolBar
performs the save. Messages regarding the resolve process are displayed in the JdbStatusLabel
control.