Cisco Cisco Computer Telephony Integration OS 8.5 Reference Guide

Page of 120
   
A-8
CTI Driver for Siebel 7 Reference Guide for Cisco ICM/IPCC Enterprise & Hosted Editions
Cisco CTI OS Release 7.2(1)
Appendix A      Business Service Script
Sample Script
bcMVG.ExecuteQuery( ForwardOnly );
while (bcMVG.FirstRecord())
{
bcMVG.DeleteRecord();
}
bcMVG = null;
 
bcBroadcastMessage = null;
 
boBroadcastMessage = null;
}
function ShowStatusText(strText, bRaiseError)
{
// ShowStatusText:
//
// Shows a text message on the Siebel status bar.
//
// This depends on the Communications Client business service
// being available, and on the Comm toolbar being displayed
// on the agent's screen.  However, since the functions
// declared in this business service are only used by
// a Communications EventResponse, it is a safe assumption
// that the Comm toolbar will always be available.
//
// Preconditions: strText is a valid text string.
//    bRaiseError is a boolean value (either true or false.)
//
// Postconditions: If the Communications Client business
//    service is available, then this function has called
//    its method ShowStatusText, passing it the string
//    argument as the text to be displayed.  The function
//    will return a boolean "true" value in this case.
//
//    If the business service is not available, or if
//
  any other error occurs, the function will either
//    call RaiseErrorText with strText as its argument
//    (if bRaiseError is true) or will do nothing and
//    return a boolean "false" value (if bRaiseError
//    is false.)
var retVal = true;
// try {
var bsCommClient = TheApplication( ).GetService("Communications Client");
if (bsCommClient == null)
{
retVal = false;
}
else
{
var psInputs  = TheApplication( ).NewPropertySet( );
var psOutputs = TheApplication( ).NewPropertySet( );
psInputs.SetProperty("Text", strText);
bsCommClient.InvokeMethod("ShowStatusText", psInputs, psOutputs);
psOutputs = null;
psInputs = null;
bsCommClient = null;
retVal = true;
}
/*