Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 

UCCX Scripting - Manipulating Numbers Stored in Strings

 

Document Overview

 

Unified Contact Center Express (UCCX) allows you to manipulate numbers stored in strings but how to do it is pretty poorly documented. This document gives a brief overview of how to modify the contents of a string using the substring function of the Cisco Unified CCX Expression Language.

 

The Cisco Unified CCX Expression Language

The Cisco Unified CCX Expression language is used by script developers to customize steps or variable values within Cisco Unified CCX scripts. The Expression Language borrows from the syntax of other languages such as C++, C, and Java. The language is described in the Cisco Unified Contact Center Express Expression Language Reference Guide.

 

The substring Function

The Cisco Unified CCX Expression Language uses strings in the same way Java uses them. For the Sun Java specification on strings, see http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html

.

 

The sections of the specification relating to the substring function is reproduced below.

<hr />

 

substring

 

public String substring(int beginIndex)

Returns a new string that is a substring of this string. The  substring begins with the character at the specified index and  extends to the end of this string.

Examples:

 "unhappy".substring(2) returns "happy"
"Harbison".substring(3) returns "bison"
"emptiness".substring(9) returns "" (an empty string)

 

Parameters: beginIndex - the beginning index, inclusive. Returns: the specified substring. Throws: IndexOutOfBoundsException - if              beginIndex is negative or larger than the              length of this String object.

Version history
Revision #:
2 of 2
Last update:
‎08-29-2017 07:55 AM
Updated by:
 
Labels (1)
Attachments
Contributors