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.

[spacer]

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.

  1. Create the prompt for the Find.

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

[spacer]

Field Name

Find Prompt

Control Type

String

Keyable Length

50


  1. Add the find prompt to the window.

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

[spacer]

Editable

False

TabStop

False


Set the following Visual properties for the field:

[spacer]

Alignment

Left

Appearance

3D Highlight

BackColor

System - Button Face

Border

True

FontColor

System - Window Text


  1. 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:

[spacer]

TabStop

True

Tooltip

Enter the value to search for


  1. 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.

run script field 'Redisplay Button' of window 'Lead Lookup';


Documentation Feedback