Completing The Trip Search Results Page - MACROMEDIA COLDFUSION MX 61-GETTING STARTED BUILDING COLDFUSION MX Getting Started

Building coldfusion mx applications
Table of Contents

Advertisement

Completing the Trip Search Results page

In the following exercises you will test and modify tripsearchresults.cfm. In the first exercise, you
will test the Trip Search Results page by entering criteria on the Trip Search form and inspecting
the results. In the second exercise, you will finish the code to construct the complete WHERE
clause for all three queryable columns from the Trip Search form.
Exercise: testing the Trip Search Results page
Follow these steps to test the Trip Search Results page:
Copy the tripsearch.cfm and tripsearchresult.cfm files from the solutions directory to the
1
my_app directory.
View the tripsearch.cfm from the my_app directory in your browser and do the following:
2
In the Trip Location drop-down list box select the Begins With option, and enter the value
a
C in the text box.
Click Search.
b
The Trip Results page displays several entries, as follows:
Notice in the Trip Results page that only one trip has a trip location of China.
c
Click the Back button in your browser to return to the Trip Search page.
d
In the Trip Location drop-down list box of the Trip Search page, select the Is option, enter the
3
value China, then click Search.
The Trip Results page displays only one entry for the trip to China in the HTML table.
Verify that the other criteria (departure date and price) are not taken into consideration yet as
4
follows:
Click the Back button in the browser to return to the Trip Search page.
a
In the Departure Date drop-down list box, select Before, enter 1/1/1900 as the date, and
b
select Smaller Than 0 for the price.
Obviously, either of these conditions would produce a results page with no rows.
Click the Search button.
c
The Search Result page should be identical to step 3 because the code to build the WHERE
clause in the Trip Results page does not include departure date and price.
Developing a search capability
73

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-GETTING STARTED BUILDING COLDFUSION MX and is the answer not in the manual?

This manual is also suitable for:

Coldfusion mx

Table of Contents