No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
getEngagedChats()
構文
1sforce.console.chat.getEngagedChats(callback:Function)引数
| 名前 | 型 | 説明 |
|---|---|---|
| callback | function | メソッドの完了時にコールされる JavaScript メソッド。 |
サンプルコード – Visualforce
1swfobject.registerObject("clippy.codeblock-1", "9");<apex:page>
2 <apex:includeScript value="/support/console/29.0/integration.js"/>
3 <a href="#" onClick="testGetEngagedChats();return false;">Get Engaged Chats</a>
4
5 <script type="text/javascript">
6 function testGetEngagedChats() {
7 sforce.console.chat.getEngagedChats(function(result) {
8 if (result.success) {
9 alert('Number Engaged Chats: ' + result.chatKey.length);
10 } else {
11 alert('getEngagedChats has failed');
12 }
13 });
14 }
15 </script>
16</apex:page>