• manasa chudamani
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 2
    Likes Given
  • 2
    Questions
  • 8
    Replies
Helloo,

Can anybody please tell how to set bootstrap for my vf page.I have tried in many ways but am not finding the exact way how to use bootstrap in my vf.
<apex:page id="page" controller="LiveChatTranscriptController" sidebar="false" docType="html-5.0" tabStyle="AccountInfo__c" >
    <apex:pageMessages id="msgs" />
    <apex:form id="form" >
        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css"/>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
          <apex:outputText value="From Date:" /> 
        <apex:input type="date" id="fromDate" value="{!fromDate}" style="display:none;"  />
        <input type="text" id="fromDatePicker"/>&nbsp;
        <apex:outputText value="To Date:" />
        <apex:input type="date" id="toDate" value="{!toDate}" style="display:none;" /> 
        <input type="text" id="toDatePicker"/>&nbsp;
        <script type="text/javascript">
        var $j = jQuery.noConflict();
        $j( "#fromDatePicker" ).datepicker({
            altField: "#page\\:form\\:fromDate",
            altFormat: "yy-mm-dd"
        });
        $j( "#toDatePicker" ).datepicker({
            altField: "#page\\:form\\:toDate",
            altFormat: "yy-mm-dd"
        });
        $j("#fromDatePicker").value($j("#page\\:form\\:fromDate").value());
        $j("#toDatePicker").value($j("#page\\:form\\:toDate").value());
        </script>
       <apex:outputText value="Select User:" />
        <apex:selectlist value="{!Users}" size="1" >
        <apex:selectOptions value="{!userList}"/>   
        </apex:selectlist> &nbsp;&nbsp; 
         <apex:outputText value="Select Status:" />
        <apex:selectlist value="{!Status}" size="1" >
        <apex:selectOptions value="{!statusList}"/>   
        </apex:selectlist> &nbsp;&nbsp;  
        <apex:commandButton Id="btnSearch" action="{!Search}" reRender="msgs,renderBlock,form" value="Search" /><br/>
        <apex:commandLink value="Export" action="{!export}" style="float:Right;color:#0080ff;" /><br/><br/>
        <apex:pageBlock id="renderBlock" >
            <apex:pageBlockSection title="LiveAgent Visitor and Transcript details ">
            <apex:pageblockTable value="{!liveAgent}" var="item" rendered="{!NOT(ISNULL(liveAgent))}">
                <apex:column value="{!item.VisitorObj.name}"></apex:column>
                <apex:column value="{!item.VisitorObj.SessionKey}"></apex:column>
                <apex:column value="{!item.TranscriptObj.name}"></apex:column>
                <apex:column value="{!item.TranscriptObj.LiveChatVisitorId}"></apex:column>
                <apex:column value="{!item.TranscriptObj.AccountId}"></apex:column>
                <apex:column value="{!item.TranscriptObj.ContactId}"></apex:column>
                <apex:column value="{!item.TranscriptObj.CaseId}"></apex:column>
                <apex:column value="{!item.TranscriptObj.Browser}"></apex:column>
                <apex:column value="{!item.TranscriptObj.IpAddress}"></apex:column>
                <apex:column value="{!item.TranscriptObj.Location}"></apex:column>
                <apex:column value="{!item.TranscriptObj.EndedBy}"></apex:column>
                <apex:column value="{!item.TranscriptObj.UserAgent}"></apex:column>
                <apex:column value="{!item.TranscriptObj.Platform}"></apex:column>
                <apex:column value="{!item.TranscriptObj.CreatedById}"></apex:column>
                <apex:column value="{!item.TranscriptObj.CreatedDate}"></apex:column>
                <apex:column value="{!item.TranscriptObj.Status}"></apex:column>
            </apex:pageblockTable>
                </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>
My Vf Page screen shot



 
Hello,
I have two vf pages one with export button and other with (contentType="application/vnd.ms-excel#LiveAgentExport.xls"),
​When i hit the export all the data is been saved as excel.But the data is repeated twice.
Can anybody please help out..

Vf Page with export Button:
<apex:page controller="LiveChatTranscriptController" sidebar="false"  >
    <apex:pageBlock >
        <apex:form >
        <apex:commandButton value="Export" action="{!ExportAll}" />
        </apex:form>
    <apex:pageBlockTable value="{!Transcript}" var="TranscriptInfo" >
             <apex:column value="{!TranscriptInfo.lv.Name}" />             
             <apex:column value="{!TranscriptInfo.lv.SessionKey}" />
        <apex:column value="{!TranscriptInfo.lc.Name}" />
        <apex:column value="{!TranscriptInfo.lc.AccountId }" />
        <apex:column value="{!TranscriptInfo.lc.ContactId }" />
        <apex:column value="{!TranscriptInfo.lc.CaseId }" />
        <apex:column value="{!TranscriptInfo.lc.Browser }" />
        <apex:column value="{!TranscriptInfo.lc.IpAddress }" />
        <apex:column value="{!TranscriptInfo.lc.Location }" /> 
        <apex:column value="{!TranscriptInfo.lc.Platform }" />        
        <apex:column value="{!TranscriptInfo.lc.Status }" />        
        <apex:column value="{!TranscriptInfo.lc.UserAgent }" />
    
       </apex:pageBlockTable>
       
    </apex:pageBlock>
</apex:page>
My Controller
public class LiveChatTranscriptController {
    public list< LiveTranscriptVisitorWrapper> TransVisitWrap = new list< LiveTranscriptVisitorWrapper>();
    set<string> stringObj = new set<string>();
 public list<LiveTranscriptVisitorWrapper> getTranscript() {
         try{
        integer i=0;
       list<LiveChatTranscript> Transcript = new list<LiveChatTranscript>([SELECT Name,AccountId,Browser,BrowserLanguage,
                                                                           CaseId,ContactId,IpAddress,LeadId,LiveChatVisitorId,
                                                                           Location,Platform,RequestTime,Status,UserAgent
                                                                           FROM LiveChatTranscript]);
         for(LiveChatTranscript transvst : Transcript)
         {
             stringObj.add(transvst.LiveChatVisitorId);
             
         }
       list<LiveChatVisitor> Visitor = new list<LiveChatVisitor>([SELECT Id,Name,SessionKey  FROM LiveChatVisitor where id=:stringObj ]);
         
         for(LiveChatTranscript trans: Transcript)
         {
             LiveChatVisitor ChatLive = Visitor.get(i);
             TransVisitWrap.add(new LiveTranscriptVisitorWrapper(trans,ChatLive));
            i++;
         }
         }
         catch(Exception e)
         {
             
         }
    return TransVisitWrap;
     }
    public pagereference ExportAll()
    {
        return page.LiveTranscriptExport;
        
    }
 }

<apex:page controller="LiveChatTranscriptController" sidebar="false" showHeader="false" contentType="application/vnd.ms-excel#LiveAgentExport.xls" >
    <apex:pageBlock >
    <apex:pageBlockTable value="{!Transcript}" var="TranscriptInfo" >
             <apex:column value="{!TranscriptInfo.lv.Name}" />             
             <apex:column value="{!TranscriptInfo.lv.SessionKey}" />
        <apex:column value="{!TranscriptInfo.lc.Name}" />
        <apex:column value="{!TranscriptInfo.lc.AccountId }" />
        <apex:column value="{!TranscriptInfo.lc.ContactId }" />
        <apex:column value="{!TranscriptInfo.lc.CaseId }" />
        <apex:column value="{!TranscriptInfo.lc.Browser }" />
        <apex:column value="{!TranscriptInfo.lc.IpAddress }" />
        <apex:column value="{!TranscriptInfo.lc.Location }" /> 
        <apex:column value="{!TranscriptInfo.lc.Platform }" />        
        <apex:column value="{!TranscriptInfo.lc.Status }" />        
        <apex:column value="{!TranscriptInfo.lc.UserAgent }" />
    
       </apex:pageBlockTable>
       
    </apex:pageBlock>
</apex:page>



 
Hi all,
I created a custom object with a lookup relationship with Account. 
I added related list in the Account layout page, but it is not showing in Lightning Experience and in Salesforce1.
Am I missing something?

Thanks
Davide
Hi all,

I have contact trigger like

trigger contacttrigger on Contact (before insert){
for(Contact c:Trigger.new)
{
if(exist)
{
//update contact
}
else
{
//creating contact and account
}
}
}
i am using external form for inserting contact records when ever a record is inserted inside contact object it fires the trigger . if already contact is exist i am updating contact that's fine at the same time new contact is created.I want to prevent that new contct creation if contact is already exist i am taking as email is unique.

Please suggest me.

Thank you
Helloo,

Can anybody please tell how to set bootstrap for my vf page.I have tried in many ways but am not finding the exact way how to use bootstrap in my vf.
<apex:page id="page" controller="LiveChatTranscriptController" sidebar="false" docType="html-5.0" tabStyle="AccountInfo__c" >
    <apex:pageMessages id="msgs" />
    <apex:form id="form" >
        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css"/>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
          <apex:outputText value="From Date:" /> 
        <apex:input type="date" id="fromDate" value="{!fromDate}" style="display:none;"  />
        <input type="text" id="fromDatePicker"/>&nbsp;
        <apex:outputText value="To Date:" />
        <apex:input type="date" id="toDate" value="{!toDate}" style="display:none;" /> 
        <input type="text" id="toDatePicker"/>&nbsp;
        <script type="text/javascript">
        var $j = jQuery.noConflict();
        $j( "#fromDatePicker" ).datepicker({
            altField: "#page\\:form\\:fromDate",
            altFormat: "yy-mm-dd"
        });
        $j( "#toDatePicker" ).datepicker({
            altField: "#page\\:form\\:toDate",
            altFormat: "yy-mm-dd"
        });
        $j("#fromDatePicker").value($j("#page\\:form\\:fromDate").value());
        $j("#toDatePicker").value($j("#page\\:form\\:toDate").value());
        </script>
       <apex:outputText value="Select User:" />
        <apex:selectlist value="{!Users}" size="1" >
        <apex:selectOptions value="{!userList}"/>   
        </apex:selectlist> &nbsp;&nbsp; 
         <apex:outputText value="Select Status:" />
        <apex:selectlist value="{!Status}" size="1" >
        <apex:selectOptions value="{!statusList}"/>   
        </apex:selectlist> &nbsp;&nbsp;  
        <apex:commandButton Id="btnSearch" action="{!Search}" reRender="msgs,renderBlock,form" value="Search" /><br/>
        <apex:commandLink value="Export" action="{!export}" style="float:Right;color:#0080ff;" /><br/><br/>
        <apex:pageBlock id="renderBlock" >
            <apex:pageBlockSection title="LiveAgent Visitor and Transcript details ">
            <apex:pageblockTable value="{!liveAgent}" var="item" rendered="{!NOT(ISNULL(liveAgent))}">
                <apex:column value="{!item.VisitorObj.name}"></apex:column>
                <apex:column value="{!item.VisitorObj.SessionKey}"></apex:column>
                <apex:column value="{!item.TranscriptObj.name}"></apex:column>
                <apex:column value="{!item.TranscriptObj.LiveChatVisitorId}"></apex:column>
                <apex:column value="{!item.TranscriptObj.AccountId}"></apex:column>
                <apex:column value="{!item.TranscriptObj.ContactId}"></apex:column>
                <apex:column value="{!item.TranscriptObj.CaseId}"></apex:column>
                <apex:column value="{!item.TranscriptObj.Browser}"></apex:column>
                <apex:column value="{!item.TranscriptObj.IpAddress}"></apex:column>
                <apex:column value="{!item.TranscriptObj.Location}"></apex:column>
                <apex:column value="{!item.TranscriptObj.EndedBy}"></apex:column>
                <apex:column value="{!item.TranscriptObj.UserAgent}"></apex:column>
                <apex:column value="{!item.TranscriptObj.Platform}"></apex:column>
                <apex:column value="{!item.TranscriptObj.CreatedById}"></apex:column>
                <apex:column value="{!item.TranscriptObj.CreatedDate}"></apex:column>
                <apex:column value="{!item.TranscriptObj.Status}"></apex:column>
            </apex:pageblockTable>
                </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>
My Vf Page screen shot



 
Hello,
I have two vf pages one with export button and other with (contentType="application/vnd.ms-excel#LiveAgentExport.xls"),
​When i hit the export all the data is been saved as excel.But the data is repeated twice.
Can anybody please help out..

Vf Page with export Button:
<apex:page controller="LiveChatTranscriptController" sidebar="false"  >
    <apex:pageBlock >
        <apex:form >
        <apex:commandButton value="Export" action="{!ExportAll}" />
        </apex:form>
    <apex:pageBlockTable value="{!Transcript}" var="TranscriptInfo" >
             <apex:column value="{!TranscriptInfo.lv.Name}" />             
             <apex:column value="{!TranscriptInfo.lv.SessionKey}" />
        <apex:column value="{!TranscriptInfo.lc.Name}" />
        <apex:column value="{!TranscriptInfo.lc.AccountId }" />
        <apex:column value="{!TranscriptInfo.lc.ContactId }" />
        <apex:column value="{!TranscriptInfo.lc.CaseId }" />
        <apex:column value="{!TranscriptInfo.lc.Browser }" />
        <apex:column value="{!TranscriptInfo.lc.IpAddress }" />
        <apex:column value="{!TranscriptInfo.lc.Location }" /> 
        <apex:column value="{!TranscriptInfo.lc.Platform }" />        
        <apex:column value="{!TranscriptInfo.lc.Status }" />        
        <apex:column value="{!TranscriptInfo.lc.UserAgent }" />
    
       </apex:pageBlockTable>
       
    </apex:pageBlock>
</apex:page>
My Controller
public class LiveChatTranscriptController {
    public list< LiveTranscriptVisitorWrapper> TransVisitWrap = new list< LiveTranscriptVisitorWrapper>();
    set<string> stringObj = new set<string>();
 public list<LiveTranscriptVisitorWrapper> getTranscript() {
         try{
        integer i=0;
       list<LiveChatTranscript> Transcript = new list<LiveChatTranscript>([SELECT Name,AccountId,Browser,BrowserLanguage,
                                                                           CaseId,ContactId,IpAddress,LeadId,LiveChatVisitorId,
                                                                           Location,Platform,RequestTime,Status,UserAgent
                                                                           FROM LiveChatTranscript]);
         for(LiveChatTranscript transvst : Transcript)
         {
             stringObj.add(transvst.LiveChatVisitorId);
             
         }
       list<LiveChatVisitor> Visitor = new list<LiveChatVisitor>([SELECT Id,Name,SessionKey  FROM LiveChatVisitor where id=:stringObj ]);
         
         for(LiveChatTranscript trans: Transcript)
         {
             LiveChatVisitor ChatLive = Visitor.get(i);
             TransVisitWrap.add(new LiveTranscriptVisitorWrapper(trans,ChatLive));
            i++;
         }
         }
         catch(Exception e)
         {
             
         }
    return TransVisitWrap;
     }
    public pagereference ExportAll()
    {
        return page.LiveTranscriptExport;
        
    }
 }

<apex:page controller="LiveChatTranscriptController" sidebar="false" showHeader="false" contentType="application/vnd.ms-excel#LiveAgentExport.xls" >
    <apex:pageBlock >
    <apex:pageBlockTable value="{!Transcript}" var="TranscriptInfo" >
             <apex:column value="{!TranscriptInfo.lv.Name}" />             
             <apex:column value="{!TranscriptInfo.lv.SessionKey}" />
        <apex:column value="{!TranscriptInfo.lc.Name}" />
        <apex:column value="{!TranscriptInfo.lc.AccountId }" />
        <apex:column value="{!TranscriptInfo.lc.ContactId }" />
        <apex:column value="{!TranscriptInfo.lc.CaseId }" />
        <apex:column value="{!TranscriptInfo.lc.Browser }" />
        <apex:column value="{!TranscriptInfo.lc.IpAddress }" />
        <apex:column value="{!TranscriptInfo.lc.Location }" /> 
        <apex:column value="{!TranscriptInfo.lc.Platform }" />        
        <apex:column value="{!TranscriptInfo.lc.Status }" />        
        <apex:column value="{!TranscriptInfo.lc.UserAgent }" />
    
       </apex:pageBlockTable>
       
    </apex:pageBlock>
</apex:page>



 
Hi Expert,

I want to create some demo on marketing cloud  journey builder. Can any one share about how to acces journey builder in markeing cloud.

Thanks
Mukesh
Hii,

Can anybody please help me how to upload a video from desktop to case and chatter.

Thanks in advance
Hi All

Account object having more than 4k record from 2010 to till.i want the lastmodified date which created date not equal in 1/4/2015 to 31/3/2016.

one record which created date is 23/4/2010 and modified date is 28/4/2016 .how to find this record


Thanks