• SFDC_sadas
  • NEWBIE
  • 20 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 4
    Replies
Hi,

How do we add liveAgent:clientChatCancelButton to a custom chat VF page? this button should be visible when an User waits for an agent to accept a chat.

Thanks
Sadas
Hi All,
Using Custom button is it possible to update Case Owner without Hardcoding the User-ID.

{!REQUIRESCRIPT("/soap/ajax/31.0/connection.js")}

var caseObj = new sforce.SObject("Case");
caseObj.id = '{!Case.Id}'; 
caseObj.Status = 'New'; 
caseObj.Complaint_Received__c= new Date();
caseObj.OwnerId = '00G26000000SsWo';
var result = sforce.connection.update([caseObj]);
if (result[0].success == 'false') {
alert(result[0].errors.message);
}
else {
location.reload(true);
}
 
I tried to create a lookup and got the error 'Id value 005L0000001DUZ7 is not valid for the Contact standard controller'

<apex:page standardcontroller="Contact">
<apex:form >

<apex:inputField value="{!Contact.Account}"/>

</apex:form>
</apex:page>

any help please.
I am unable to display report  in PDF format, only the Column the headings  are displayed, any help please.

VF Page 
<apex:page controller="reportclass" id="page" showHeader="false" Sidebar="false" cache="true" expires="1200" renderAs="pdf" >
  
        <body >
<apex:pageBlock id="results" >
                <!-- HTML Table used to display Candidate Data in PDF format -->
                <table border="1" cellpadding="1" cellspacing="0" style="width:100%;border:1px solid #000000;font-familyans-serif;font-size:10px">
                    <tr style="font-family:verdana;color:Black;font-size:12px;height=18px;width:100%" > 
                        <!-- Autofilter added for header row in PDF sheet -->
                        <td x:autofilter='all' style="background-color: #DAFFFF" ><b> <apex:outputText value="Date"  /></b> </td>
                        <td x:autofilter='all' style="background-color: #DAFFFF" ><b><apex:outputText value="Subject"/></b> </td>
                        <td x:autofilter='all' style="background-color: #DAFFFF" ><b><apex:outputText value="Contact"/></b></td>
                        <td x:autofilter='all' style="background-color: #DAFFFF" ><b><apex:outputText value="Comments"/></b></td>
                    </tr>
                   

                      
                       <apex:repeat value="{!Opportunity}" var="c" id="InvRepeat">
                        <tr border="1" style="font-family:verdana;color:Black;font-size:12px;width:100%" >
                            <td ><apex:outputText value="{!c.name}"/></td>
                            <td><apex:outputText value="{!c.Fund_Name__c}"/></td>
                            <td><apex:outputText value="{!c.CloseDate}"/></td>
                            <td><apex:outputText value="{!c.Amount}"/></td>
                             <td><apex:outputText value="{!c.StageName}"/></td>
                            </tr>
                    </apex:repeat>
My requirement is to ceate a link from Home page to a VF page1 which should have details of all the Account name (may be dropdown) and if I select an account it should be directed to VF page2.
VF page 2 is a custom report which can also also be accessed through Account detail page, I have already created the VF page 2 and the custom button in Account detail page but not sure how to do the second part.

Any help please.

Thanks in advance.
Hi,

I am new to VF page and I need to create the following custom report.

for a given account it should show several lists with

Key Contacts
Funds
Opportunities 
all in seperate tables and should be able to export them as PDF and CSV files.

Any help please.

Regards
Sadas.
Hi All,
Using Custom button is it possible to update Case Owner without Hardcoding the User-ID.

{!REQUIRESCRIPT("/soap/ajax/31.0/connection.js")}

var caseObj = new sforce.SObject("Case");
caseObj.id = '{!Case.Id}'; 
caseObj.Status = 'New'; 
caseObj.Complaint_Received__c= new Date();
caseObj.OwnerId = '00G26000000SsWo';
var result = sforce.connection.update([caseObj]);
if (result[0].success == 'false') {
alert(result[0].errors.message);
}
else {
location.reload(true);
}
 
I am unable to display report  in PDF format, only the Column the headings  are displayed, any help please.

VF Page 
<apex:page controller="reportclass" id="page" showHeader="false" Sidebar="false" cache="true" expires="1200" renderAs="pdf" >
  
        <body >
<apex:pageBlock id="results" >
                <!-- HTML Table used to display Candidate Data in PDF format -->
                <table border="1" cellpadding="1" cellspacing="0" style="width:100%;border:1px solid #000000;font-familyans-serif;font-size:10px">
                    <tr style="font-family:verdana;color:Black;font-size:12px;height=18px;width:100%" > 
                        <!-- Autofilter added for header row in PDF sheet -->
                        <td x:autofilter='all' style="background-color: #DAFFFF" ><b> <apex:outputText value="Date"  /></b> </td>
                        <td x:autofilter='all' style="background-color: #DAFFFF" ><b><apex:outputText value="Subject"/></b> </td>
                        <td x:autofilter='all' style="background-color: #DAFFFF" ><b><apex:outputText value="Contact"/></b></td>
                        <td x:autofilter='all' style="background-color: #DAFFFF" ><b><apex:outputText value="Comments"/></b></td>
                    </tr>
                   

                      
                       <apex:repeat value="{!Opportunity}" var="c" id="InvRepeat">
                        <tr border="1" style="font-family:verdana;color:Black;font-size:12px;width:100%" >
                            <td ><apex:outputText value="{!c.name}"/></td>
                            <td><apex:outputText value="{!c.Fund_Name__c}"/></td>
                            <td><apex:outputText value="{!c.CloseDate}"/></td>
                            <td><apex:outputText value="{!c.Amount}"/></td>
                             <td><apex:outputText value="{!c.StageName}"/></td>
                            </tr>
                    </apex:repeat>