Skip to main content
The structure of a dynamic selection is defined by several tables that contain the criteria definitions. This structure is complex and easy to get wrong. We strongly urge you to use the COM objects or the NetServer APIs to create and modify the criteria instead of doing it directly. Dynamic selection -screenshot The corresponding Selection table row looks like this:
The selType = 1 (dynamic)
The actual criteria are stored in the searchCriteria table:
This criterion contains one criteria group (the group concept is there to support more complex searches using AND/OR operators and so on - nothing is implemented yet though).
The group contains one or more search criterion records: each criterion corresponds to a field.
The contact.name field (1281) is stored in the criterionI. The extraId is used when referencing the SAINT counters.
Operator 18 = Begins with The actual value that we want to search for is stored in a separate table so that we can support multiple values per search criterion (for the is-one-of searches).
Which of the fields you need to fill in depends on the field used in the criterionId. Contact.Name is a string value, so the stringValue field in the criterionValue should be filled out.

Find dialog

The search criteria tables are also used when defining extra fields in the Find dialog. This is where the active flag is used. Un-checking a search field in the find dialog corresponds to setting active=0.

See also