In these steps, you create two EGL records. The searchTerms record
represents the search input, or the terms of the search. In this case,
the searchTerms record holds the name and state of
the customers being searched for. The searchResults[] array
of records represents the search results, or the records from the
database that match the search input.
- From the EGL drawer of the Palette view, drag a New
Variable onto the page, underneath the text Customer
Search. The Create a New EGL Data Variable
window opens.
- Under Type Selection, click Record.
- Under Record Type, click Customer.
- In the Enter the name of the field field,
type the following text:
searchTerms
- Clear the Array check box.
- Clear the Add controls to display the EGL element
on the web page check box.
- Click OK.
- Drag another New Variable from the
Palette view onto the page, underneath Customer Search. The Create a New EGL Data Variable window opens again.
- Under Type Selection, click Record.
- Under Record Type, click Customer.
- Under Enter the name of the field,
type this name for the field:
searchResults
- Select the Array check box.
- Clear the Add controls to display the EGL element
on the web page check box.
- Click OK.
Now these two new variables are shown in the Page Data view.