Find

The Find allows you to search the contents of the
scrolling window, based on the sorting order specified in the Sort
by/View options button drop list.

The prompt for the Find is actually a string
field whose content is specified through sanScript code when a
sorting method is chosen in the Sort by/View options button drop
list.

Adding a Find

To add a Find to a lookup window, use the
following procedure.

Create the prompt for the
Find.

Create a local field named ‘Find Prompt’
for your lookup form. This local field has the following
characteristics:

Field Name

Find Prompt

Control Type

String

Keyable Length

50

Add the find prompt to the
window.

Drag the local field onto the lookup
window layout. Set the following Object properties for the
field:

Editable

False

TabStop

False

Set the following Visual properties for
the field:

Alignment

Left

Appearance

3D Highlight

BackColor

System - Button Face

Border

True

FontColor

System - Window Text

Add the Find field to the
window.

Drag the global field named ‘Search Text’
onto the lookup window layout. Set the following Object properties
for the field:

TabStop

True

Tooltip

Enter the value to search for

Attach a change script.

Attach a change script to ‘Search Text’
field, similar to the following example. This script causes the
Redisplay button’s script to run, refilling the scrolling window
based on the text the user is searching for.