![]() |
|
![]() ![]() ![]() |
Working with Variables > Employing Variables in Applications > Programmatically Accessing Call Session Variables > Setting Call Session Variable Values | |
![]() |
Setting Call Session Variable Values |
To set call session variables programmatically, the methodology is a little different depending on the type of variable: a simple or complex variable.
See the following sections:
Refer to the Dialog Designer Programmers Guide in the online help for the full set of API for accessing variables and their values.
Setting Simple Variables
The following code sets the value of the simple variable "weather" to a Java String object.
This code assumes that a simple variable "weather" has been defined in the project Variable Editor. This code uses the short-hand methods to access variables.
Setting Complex Variables
To set the value of a complex variable field, code format to obtain an IVariableField reference for a complex variable field.
![]() ![]() ![]() |
©2009, Avaya Inc. All rights reserved.
|