Initial Setup Properties |
||
Common (Voice and Data) |
||
|
||
Runtime Properties |
||
Common (Voice and Data) |
||
|
||
Methods |
||
Common (Voice and Data) |
||
|
|
|
Events |
||
Common (Voice and Data) |
||
Voice Only |
||
|
|
Overview
When a call enters this control, DataSwitch retrieves the value of a field that a previous DataFind control read from a database record. This value is then stored in the Result property and is compared against the DataSwitch condition. The field name and comparison conditions can contain calculated values from other controls. The result of this comparison determines which output node the call exits out of onto the next control.
Pattern Matching
The DataSwitch control can test the data against as many different patterns as required. Pattern matching can be performed exactly or using a digit-to-alphabetic character translation. Translation is needed when the caller must enter alphabetic strings using the letters on the keypad.
In addition, the DataSwitch control can perform complete matching or it can use a find-first method that matches any field beginning with the characters given. An example of find-first matching is a condition that matches JO with both JOHN and JONAS in the database.
If the record is found, but there isn't a match between the data field and any one of the conditions, the call is transferred to the No Match node. If a match is found between the value obtained and one of the result fields, the call is routed to the appropriate node.
You can also bypass or add to the DataSwitch condition matching by checking the Let VB decide check box in the decision dialog. This generates a VB Condition event that lets your code to determine the result of the comparison.
Using with DataFind
The DataSwitch must be connected to a DataFind control either directly or through other controls.