• Mehrial
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Greetings

 

I've implemented the live agent functionality, and i made every step described in the documentation, but, no matter what i do, the chat always is offline, even if i have two service cloud users  online in the console. 

 

This is the VF code:

 

<apex:page >    
    <h1>Welcome</h1>
       

        <!-- START Button code -->      
            <img id="liveagent_button_online_573i00000001vzN" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('573i00000001vzN')" src="https://xxdemo.force.com/contacto/resource/1378315436000/online" /><img id="liveagent_button_offline_573i00000001vzN" style="display: none; border: 0px none; " src="https://xxdemo.force.com/contacto/resource/1378315454000/offline" />
<script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('573i00000001vzN', document.getElementById('liveagent_button_online_573i00000001vzN'));
liveagent.showWhenOffline('573i00000001vzN', document.getElementById('liveagent_button_offline_573i00000001vzN'));
});</script>

        <!-- END Button code -->

        <!-- Deployment code --> 
<script type='text/javascript' src='https://c.la2c1.salesforceliveagent.com/content/g/deployment.js'></script>
<script type='text/javascript'>
liveagent.init('https://d.la2c1.salesforceliveagent.com/chat', '572i00000001txY', '00Di0000000eFdt');
</script>
</apex:page>

What i am doing wrong? 

  • September 05, 2013
  • Like
  • 0

Hello every body, I don't know why can't display the results in my visualforce page. The page don't show error only is empty

Please help me, I try to display the contacts in a family with their benefits

 

This is my visualforce page

 

<apex:page StandardController="Sayana__c" extensions="familiaExtension">
  <apex:pageBlock title="Beneficios">
  <apex:pageBlockTable value="{!BeneficiosTodos}" var="beneficio" cellPadding="3" border="1" columnsWidth="50px,110px,60px,60px,230px" rules="all">
     <apex:column value="{!beneficio.Contacto__c}"/>
     <apex:column value="{!beneficio.fecha_entrega__c}"/>
  </apex:pageBlockTable>
</apex:pageBlock>
</apex:page>

 

and this is the apex class

 

public class familiaExtension {

    private final Sayana__c sayana;
    private string idSayana;
    private final Contact contacto;    
    private final Beneficio__c[] beneficios;

    public familiaExtension(ApexPages.StandardController sayanaController) {
       this.sayana = (Sayana__c)sayanaController.getRecord();
       idSayana = sayana.id;
    }

    public List<Beneficio__c> getBeneficiosTodos()
    {
       for(Contact contact : [SELECT  id, Name from Contact where Sayana__c = :idSayana]){
           Beneficio__c[] beneficios  = contact.Beneficios__r;
       }       
       return beneficios;
    }
}