focusCommEvent Method
This optional method notifies Fusion Service that the toolbar has changed the previously active communication slot to a different communication slot.
Here's the parameters for this method:
| Parameter | Description | 
|---|---|
| eventId | A unique media item identifier. The value must match the value supplied by the toolbar in the newCommEvent. | 
| channel | Name of the channel for which the method is called. For more information on what channels are available, see Channel Type Data. | 
| channelType | The type of channel for which the method is being called. | 
| inData | Object containing additional event details. An empty object may be passed. This parameter is reserved for future use. | 
| callback | Function used by Fusion Service on the toolbar which indicates receipt of a Fusion Service event. | 
Sample code to call the method:
<html>
<head>
<script type="text/javascript" src="http://domain:port/ora_support/js/mcaInteractionV1.js">
</script>
<script type="text/javascript">
   function focusCommEvent() {
      svcMcaTlb.api.focusCommEvent("1","PHONE","ORA_SVC_PHONE",{},function(response){
         if (response.result == 'success') {
            alert("success response for focusCommEvent received");
         } else {
            alert("error response for focusCommEvent received: "+response.error);
         }
       }, );
   }
</script>
<body>
   <input type="button" value="Fire focusCommEvent" onclick="focusCommEvent()"/>
</body>
</html>