I have created the custom chat page and i want the live agent user name to appear on custom chat window.I am using live agent session object to get live agent user name but i am getting the following error "Error: Compile Error: expecting a right angle bracket, found 'Agent' at line 6 column 19"....also tell me what should be the select query.
<apex:page controller="livegentclass">
<apex:image value="{!$Resource.chaton}"/>
<liveAgent:clientchat >
<liveAgent:clientChatSaveButton label="Save Chat" />
<liveAgent:clientChatEndButton label="End Chat" />
<div id="prechatdata">
</div>
<div style="top: 5px; left: 5px; right: 5px; bottom: 5px;
position: absolute; z-index: 0;">
<liveAgent:clientChatAlertMessage />
<liveAgent:clientChatStatusMessage />
<table id="waitingMessage" cellpadding="0" cellspacing="0">
<tr>
<td>Please wait while you are connected to an available agent.</td>
</tr>
</table>
<div style="top: 0; right: 0; bottom: 41px; left: 0; padding: 0;
position: absolute; word-wrap: break-word; z-index: 0;">
<liveAgent:clientChatLog />
</div>
<div style="position: absolute; height: auto; right: 0; bottom: 0; left: 0;
margin-right: 67px;">
<liveagent:clientChatInput /><liveAgent:clientChatSendButton label="Send"/>
</div>
</div>
</liveAgent:clientchat>
</div>
</apex:page>
Code for Liveagentclass:
public with sharing class liveagentclass {
String AgentId;
public liveagentclass (){
AgentId=Apexpages.currentpage().getparameters().get('id');
}
public List<Live Agent Session> las {get;set;}
las=select query....
}
Live Agent Sessionin your code is not valid and perhaps should beLiveAgentSession. But I don't even know if such an object exists in queryable form; hopefully someone with Live Agent experience will provide a full answer. – Keith C Jun 28 '14 at 10:24