Cisco Cisco Computer Telephony Integration OS 8.5 Reference Guide
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
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;
}
/*