-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
2Likes Given
-
2Questions
-
8Replies
Bootstrap for visual force page with table
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.
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"/> <apex:outputText value="To Date:" /> <apex:input type="date" id="toDate" value="{!toDate}" style="display:none;" /> <input type="text" id="toDatePicker"/> <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> <apex:outputText value="Select Status:" /> <apex:selectlist value="{!Status}" size="1" > <apex:selectOptions value="{!statusList}"/> </apex:selectlist> <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>
- manasa chudamani
- April 15, 2016
- Like
- 0
- Continue reading or reply
Exporting data to excel from vf
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:
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>
- manasa chudamani
- April 07, 2016
- Like
- 0
- Continue reading or reply
- Mounika Allenki
- March 08, 2017
- Like
- 0
- Continue reading or reply
related list custom object not showing Salesforce1
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
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
- Davide Molinari
- March 03, 2017
- Like
- 0
- Continue reading or reply
update contact using trigger on conntact object
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
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
- venkata someswara rao vejju
- November 10, 2016
- Like
- 0
- Continue reading or reply
Bootstrap for visual force page with table
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.
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"/> <apex:outputText value="To Date:" /> <apex:input type="date" id="toDate" value="{!toDate}" style="display:none;" /> <input type="text" id="toDatePicker"/> <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> <apex:outputText value="Select Status:" /> <apex:selectlist value="{!Status}" size="1" > <apex:selectOptions value="{!statusList}"/> </apex:selectlist> <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>
- manasa chudamani
- April 15, 2016
- Like
- 0
- Continue reading or reply
Exporting data to excel from vf
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:
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>
- manasa chudamani
- April 07, 2016
- Like
- 0
- Continue reading or reply
Marketing cloud journey builder
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
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
- mukesh gupta
- April 13, 2017
- Like
- 1
- Continue reading or reply
Uploading a video in case
Hii,
Can anybody please help me how to upload a video from desktop to case and chatter.
Thanks in advance
Can anybody please help me how to upload a video from desktop to case and chatter.
Thanks in advance
- Salesforce User
- May 03, 2016
- Like
- 2
- Continue reading or reply
Formula field for Date filter
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
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
- Money Care
- April 28, 2016
- Like
- 1
- Continue reading or reply