Programming instructions
100 Lesson 4 Validating Data to Enforce Business Rules
Enhancing the Trip Maintenance application
In this lesson and the next, you will create the code to implement the remaining 
maintenance buttons on the main Trip Maintenance application page. The remaining 
buttons are Add and Edit. 
You will develop the data entry form to capture new trip information and validate the 
data entered against Compass Travel business rules. You will then modify the data entry 
form to edit existing trips. In the next lesson, you will continue to build on this 
application by adding logic to insert and update the data to the Compass Travel database.
The following list identifies the trip edit components that you will create in this lesson.
• Trip Edit page You will create the Trip Edit page (see the following figure) bto add 
new trips and edit existing trips. The page will be launched from the Add and Edit 
buttons on the main Trip Maintenance application page (tripdetail.cfm). The fields 
required to capture trip information are the same as those on the Trip Detail page 
that you used to display trip information in Lesson 3.
• Trip Edit Action page You will develop an action page that will insert or update 
trip data passed from the Trip Edit page into the trips table of the Compass Travel 
database. In this lesson you will only add the logic to validate the data entered on the 
Trip Edit page.










