Operation Manual

Table Of Contents
662
Building applications visually
Last updated 11/30/2015
5 Give the SQL variables the values of the search parameters by clicking the Plus (+) button in the Variables area and
entering the variables name, default value (the value the variable should take if no run-time value is returned), and
run-time value (usually a server object holding a value sent by a browser, such as a request variable).
In the following ASP example, the HTML form on the search page uses the GET method and contains one text field
called LastName and another called Department:
In ColdFusion, the run-time values would be #LastName# and #Department#. In PHP, the run-time values would
be $_REQUEST["LastName"] and $_REQUEST["Department"].
6 (Optional) Click Test to create an instance of the recordset using the default variable values.
The default values simulate the values that would otherwise have been returned from the search page. Click OK to
close the test recordset.
7 If youre satisfied with the recordset, click OK.
The SQL query is inserted in your page.
The next step is to display the recordset on the results page.
Display the search results
After creating a recordset to hold the search results, you must display the information on the results page. Displaying
the records can be a simple matter of dragging individual columns from the Bindings panel to the results page. You can
add navigation links to move forward and backward through the recordset, or you can create a repeating region to
display more than one record on the page. You can also add links to a detail page.
For more information on methods of displaying dynamic content on a page other than displaying results in a dynamic
table, see
.
1 Place the insertion point where you want the dynamic table to appear on the results page, and select Insert > Data
Objects > Dynamic Data > Dynamic Table.
2 Complete the Dynamic Table dialog box, selecting the recordset you defined to hold the search results.
3 Click OK. A dynamic table that displays search results is inserted on the results page.
Create a detail page for a results page
Your set of search and results pages can include a detail page to display more information about specific records on the
results page. In this situation, your results page also doubles as the master page in a master-detail page set.
Create a link to open a related page (ASP)
You can create a link that opens a related page and that passes existing parameters to that page. The server behavior is
only available when using the ASP server model.