• Alexander Rocha
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 7
    Replies
Hi everyone,

I found a "tag" functionality to filter some records of a object. But I can only add tag (and also filter the records) in a layout page of a object.
I want to know if there is some API to implements "add tag" and "filter records by tag" functionality in my Custom Visualforce Page.

Alexander Rocha
 

Hi everyone,

I'm having a problem here.
I'm trying to test my class, and I can't test "Site.login()" function.

I have a code like this:

logado = Site.login(username, password, null);              
if(logado != null){
    //Some code here
}

No matter which values I pass in the parameters, it always returns null. There's a way to this return true in a apex test class?

Thank you for your attention.
Sorry my bad english.

Alexander Rocha

Hi everyone,

I have a problem here.
I'm trying to implement a feed functionality(Chatter) in my visualforcePage, using the feedItem object.
I followed this tutorial https://developer.salesforce.com/page/Chatter_Code_Recipes (Recipe 6) and everything runs very well.
But I want to add the flag (feed) functionality, how can I do this? (With this the "Moderator" can filter the bad feeds)
I looked FeedItem fields and I didn't find any "flag" field.

Sorry my bad english.


Alexander Santos Rocha
Hi everyone,

How are you all?
I'm using Timba Survey to get some data from my community and I'm getting some problems here. =/

I need to fill the field "relatedCase" from survey, and I want to fill it by the get parameter of the survey.

In this link of Altimetrik Support: http://sfproducts.altimetrik.com/entries/25654756-How-to-invite-from-opportunity
I found this: http://yoursite.force.com/timbasurveys__survey?id=survey ID goes here&cId=contact ID merge field goes here&oppty={!Opportunity.Id}&wf=yes
The get parameter of "Contact Id" is cid; the get parameter of "Opportunity Id" is oppty, the get parameter of "User Id" is Uid.
My question is, what's the get parameter of "Case Id"?? I tried CaseId, CaId, csId, case, these didn't work.

Thanks,
Alexander Rocha
 

Hi everyone,

I'm trying to put a charset in my Visualforce Page, but that doesn't work.

I tried this >>> <apex:page showHeader="false" contentType="text/html; charset=UTF-8">

and this >>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

Sorry my bad english!

Hi,

How are you all?
I'm trying to implement a prechat code in my page, and when I submit the form, I get an error like this "The chat window can only be opened with a button - can not access it directly."

Default code is being used (from live agent doc):

<apex:page showHeader="false">
    <!-- This script takes the endpoint URL parameter passed from the deployment
      page and makes it the action for the form -->
    <script type="text/javascript">
         (function() {
         function handlePageLoad() {
           var endpointMatcher = new RegExp("[\\?\\&]endpoint=([^&#]*)");
           document.getElementById('prechatForm').setAttribute('action',
           decodeURIComponent(endpointMatcher.exec(document.location.search)[1]));
         } if (window.addEventListener) {
                  window.addEventListener('load', handlePageLoad, false);
       } else { window.attachEvent('onload', handlePageLoad, false);
                  }})();
    </script>
    <h1>Pre-chat Form</h1>
    <form method='post' id='prechatForm'>
          First name: <input type='text' name='liveagent.prechat:FirstNameDetail'
            id='customField1' /><br />
          Last name: <input type='text' name='liveagent.prechat:LastNameDetail'
            id='customField2' /><br />
          Department: <select name="liveagent.prechat.buttons">
              <!-- Values are LiveChatButton IDs. -->
              <option value="573a00000000001">Customer Service</option>
              <option value="573a00000000002">Technical Support</option>
              <option value="573a00000000001,573a00000000002">Customer Service if online,
              otherwise Technical Support</option>
          </select><br />
    
          
    
          <input type='submit' value='Request Chat' id='prechat_submit'/>
    <style type="text/css">
    p {font-weight: bolder }
    </style>
    </form>
</apex:page>

 
Hi guys,

I have a problem here =/
I develop this simple page to start a Live Agent chat, but these functions isn't running:

liveagent.enableLogging();
liveagent.setChatWindowHeight(800);
liveagent.setChatWindowWidht(600);

Here is the complete code:

<script type="text/javascript">
    if (!window._laq){ window._laq = []; }
    window._laq.push(function(){
        liveagent.showWhenOnline('573190000008OLY', document.getElementById('Online'));
        liveagent.showWhenOffline('573190000008OLY', document.getElementById('Offline'));
    });
</script>
<input type='button' name='liveagent' onclick='test()' id='Online' value='Iniciar Chat'>
<span id='Offline'>Support Offline </span>
<script type='text/javascript' src='https://c.la3-c2cs-chi.salesforceliveagent.com/content/g/js/32.0/deployment.js'></script>
<script type='text/javascript'>
    liveagent.init('https://d.la3-c2cs-chi.salesforceliveagent.com/chat', '572190000008OK1', '00D19000000DMeE');
    
    function test(){
        
        liveagent.startChat("573190000008OLY");
        liveagent.enableLogging();
    
        liveagent.setChatWindowHeight(800);
        liveagent.setChatWindowWidht(600);
        
    }
    
</script>

Sorry my bad english, but what could be done?

Hi everyone,

I'm having a problem here.
I'm trying to test my class, and I can't test "Site.login()" function.

I have a code like this:

logado = Site.login(username, password, null);              
if(logado != null){
    //Some code here
}

No matter which values I pass in the parameters, it always returns null. There's a way to this return true in a apex test class?

Thank you for your attention.
Sorry my bad english.

Alexander Rocha

Hi everyone,

I have a problem here.
I'm trying to implement a feed functionality(Chatter) in my visualforcePage, using the feedItem object.
I followed this tutorial https://developer.salesforce.com/page/Chatter_Code_Recipes (Recipe 6) and everything runs very well.
But I want to add the flag (feed) functionality, how can I do this? (With this the "Moderator" can filter the bad feeds)
I looked FeedItem fields and I didn't find any "flag" field.

Sorry my bad english.


Alexander Santos Rocha

Hi everyone,

I'm trying to put a charset in my Visualforce Page, but that doesn't work.

I tried this >>> <apex:page showHeader="false" contentType="text/html; charset=UTF-8">

and this >>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

Sorry my bad english!

Hi guys,

I have a problem here =/
I develop this simple page to start a Live Agent chat, but these functions isn't running:

liveagent.enableLogging();
liveagent.setChatWindowHeight(800);
liveagent.setChatWindowWidht(600);

Here is the complete code:

<script type="text/javascript">
    if (!window._laq){ window._laq = []; }
    window._laq.push(function(){
        liveagent.showWhenOnline('573190000008OLY', document.getElementById('Online'));
        liveagent.showWhenOffline('573190000008OLY', document.getElementById('Offline'));
    });
</script>
<input type='button' name='liveagent' onclick='test()' id='Online' value='Iniciar Chat'>
<span id='Offline'>Support Offline </span>
<script type='text/javascript' src='https://c.la3-c2cs-chi.salesforceliveagent.com/content/g/js/32.0/deployment.js'></script>
<script type='text/javascript'>
    liveagent.init('https://d.la3-c2cs-chi.salesforceliveagent.com/chat', '572190000008OK1', '00D19000000DMeE');
    
    function test(){
        
        liveagent.startChat("573190000008OLY");
        liveagent.enableLogging();
    
        liveagent.setChatWindowHeight(800);
        liveagent.setChatWindowWidht(600);
        
    }
    
</script>

Sorry my bad english, but what could be done?