Cisco Cisco Computer Telephony Integration Option 8.5 参照ガイド
Chapter 4 Broadcast Statistics
Invoking Service Methods
4-12
Cisco ICM Software CTI Driver for Siebel 7 Reference Guide Release 6.0(0)
// Iterate through all Broadcast Messages starting with
// the prefix strPrefix and remove any association between this agent's
// Position and those messages.
var boBroadcastMessage = TheApplication().GetBusObject("Broadcast Message");
if (boBroadcastMessage == null)
{
ShowStatusText("Unable to create Broadcast Message business object", true);
return null;
}
var bcBroadcastMessage=boBroadcastMessage.GetBusComp("Broadcast Message");
if (bcBroadcastMessage == null)
{
boBroadcastMessage = null;
ShowStatusText("Unable to create Broadcast Message business component", true);
return null;
}
with (bcBroadcastMessage)
{
ClearToQuery();
SetViewMode( AllView );
ActivateField("Abstract");
ActivateField("Position Id");
SetSearchSpec("Abstract", "LIKE '" + strPrefix + "*'");
ExecuteQuery( ForwardOnly );
}
var hasRecord = bcBroadcastMessage.FirstRecord();
while (hasRecord)
{
var bcMVG = bcBroadcastMessage.GetMVGBusComp("Position Id");
if (bcMVG == null)
{
ShowStatusText("Unable to create MVG BusComp for Position Id", true);
bcBroadcastMessage = null;
boBroadcastMessage = null;
return;
}
// Search through the existing Position associations with
// this Broadcast Message for one whose Row Id