Examples of Search Tags

Top  Previous  Next

Search tags can be set up by right-clicking on a piece of text or graphic and choosing New tag. You may need to edit the text of the tag to exclude variable data: e.g. it might be Total: 123.45 when you want to search for Total: alone. Options for search tags are set up in the Searching section of the 'Field Definitions' window, see Setting search tag options.

Should you decide to use an image as a tag and find that its position varies slightly from page to page, set up the search tag as part of a graphic rather than graphic. Sweep out an area for the tag big enough to surround any occurrences of the image; the 'part of a graphic' mechanism will search for the 'coloured' part of the image in the defined area. It will not matter how much 'white' there may be on each edge.

Normally, search tags are used to locate fields positioned relative to the tag itself. In this example,  however, data is extracted from fields positioned relative to the record, and the tag (if present) may located anywhere in the record:

1.Define a field that must be present, say OVERDUE.
2.Define a composite field, say RENEW defined by the composed string {?OVERDUE}.
This field will be set to T only if RENEW is found, otherwise it is set to F.
3.Set up a search tag for RENEW set to T.
4.Define sub-fields from which data is to be extracted.