• raj29mat
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 3
    Replies

Hi,

 

I have created as VF page that includes some 13 tabs related to 20 different object. I have buttons in all these tabs which are taking a 5 sec to respond. I want to improve my performance. I am attaching the debug log which I am getting on click on a button. The function is actually finishing  in the first screenshot itself. But it is calling all get methods for Boolean variables and I am seeing the following code which I am not able to understand. Can anyone let me know what is taking time in this debug?

 

14:30:26.995|METHOD_ENTRY|[1174,7]|System.debug(String)
14:30:26.995|USER_DEBUG|[1174,7]|DEBUG|$$$$$$$$$$$$$$$$$$$$$$$$$$$$here
14:30:26.995|METHOD_EXIT|[1174,7]|debug(ANY)
14:30:26.995|METHOD_ENTRY|[1176,12]|LIST:SOBJECT:Discrepancy__c.size()
14:30:26.995|METHOD_EXIT|[1176,12]|size()
14:30:26.995|METHOD_ENTRY|[1199,13]|LIST:SOBJECT:Discrepancy__c.add(SOBJECT:Discrepancy__c)
14:30:26.995|METHOD_EXIT|[1199,13]|add(ANY)
14:30:26.996|CODE_UNIT_FINISHED
14:30:26.996|VF_APEX_CALL|j_id1370|{!AddDiscrepancy}|PageReference: none

 

14:30:27.513|CODE_UNIT_STARTED|[EXTERNAL]VForcePage
14:30:27.513|CODE_UNIT_STARTED|[EXTERNAL]VForcePage
14:30:27.514|CODE_UNIT_FINISHED
14:30:27.514|CODE_UNIT_FINISHED
14:30:27.515|CODE_UNIT_STARTED|[EXTERNAL]VForcePage
14:30:27.515|CODE_UNIT_STARTED|[EXTERNAL]VForcePage
14:30:27.515|CODE_UNIT_FINISHED
14:30:27.515|CODE_UNIT_FINISHED
14:30:27.749|CODE_UNIT_STARTED|[EXTERNAL]VForcePage
14:30:27.750|CODE_UNIT_STARTED|[EXTERNAL]VForcePage
14:30:27.750|CODE_UNIT_FINISHED
14:30:27.750|CODE_UNIT_FINISHED

Hi ,

 

   I have a requirement where I need to display a multipicklist in a pageblock table. But my

issue is i have the field called DocumentFmlyName__c. Based on this my data in

multi select picklist( Documents__c ) should change and this should happen while displaying itself.

It should not show other values which are not relevant in the available picklist. Is there any

other workarounds that i can do?

 

 <apex:pageBlockTable  title="Check List" value="{!objchecklist}" var="chk">

     <apex:column >
                     <apex:facet name="header">Document Family</apex:facet>
                     <apex:outputField value="{!chk.DocumentFmlyName__c}"/></apex:column>
                    
                    <apex:column >
                      <apex:facet name="header">Child Documents</apex:facet>
                    <apex:inputField value="{!chk.Documents__c}"/></apex:column>

 

</apex:pageBlockTable>

 

Please let me know how can I accomplish this

Hi ,

    

I have an s-control in my page where it displays some values in 15 columns.Currently I am viewing only 7 columns in a page and rest is cut.Is there any option to provide a scrollbar in the s-contol page that is diplayed in my main page.

 

Regards

Raji

Hi all,
 
  I want to call an external url from a apex class,Is this possible?for eg:www.google.com
 
Thanks and Regards
Raji
Hi all,
 
   I have developed a visual force report where i am showing the output as pdf.
But for the table below I have 11 columns to display.But I am seeing only
6 columns.How can I view all the columns in a page.Can I adjust the output
size
<apex:page controller="accountdetail" renderAs="pdf" >
  <h1><Center>Customer Visit Report</Center></h1><br><br></br></br>
</apex:dataTable>
 </apex:pageBlock>
<apex:pageBlock title="Consumption Information">
  <apex:dataTable value="{!consumption}" var="consumptions" 
cellPadding="4" border="1">
<apex:column >
<apex:facet name="header"><b>Account </b></apex:facet>
<apex:outputText value="{!consumptions.Account__c}"/>
</apex:column>

<apex:column >
<apex:facet name="header"><b> Product </b></apex:facet>
<apex:outputText value="{!consumptions.Product__c}"/>
</apex:column>
 
<apex:column >
<apex:facet name="header"><b> Rolling Sales </b></apex:facet>
<apex:outputText value="{!consumptions.Rolling_Sales__c}"/>
</apex:column>
 
<apex:column >
<apex:facet name="header"><b> Rolling Sales Last
Year</b></apex:facet>
<apex:outputText
value="{!consumptions.Rolling_Sales_LY__c}"/>
</apex:column>

<apex:column >
<apex:facet name="header"><b>Rolling Sales VS  Rolling Sales
Last Year</b></apex:facet>
<apex:outputText
value="{!consumptions.Rolling_Sales_Vs_Rolling_Sales_LY__c}"/
>
</apex:column>
 
<apex:column >
<apex:facet name="header"><b>Cumulated Sales</b></apex:facet>
<apex:outputText value="{!consumptions.Cumulated_Sales__c}"/>
</apex:column>
 

<apex:column >
<apex:facet name="header"><b>Cumulated Sales 
LY</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Sales_LY__c}"/>
</apex:column>
 

<apex:column >
<apex:facet name="header"><b>Cumulated Sales VS Cumulated
Sales  LY</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Sales_Vs__c}"/>
</apex:column>
 
 
<apex:column >
<apex:facet name="header"><b>Cumulated
Volume</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Volume__c}"/>
</apex:column>
 
<apex:column >
<apex:facet name="header"><b>Cumulated Volume 
LY</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Volume_LY__c}"/>
</apex:column>
 

<apex:column >
<apex:facet name="header"><b>Cumulated Volume  VS Cumulated
Volume  LY</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Volume_Vs_Cumulated_Volume_LY
__c}"/>
</apex:column>
</apex:dataTable>
 </apex:pageBlock>
 
</apex:page>
 
 
 
Thanks and Regards
Raji
Hi All,
 
   I was able to create cases for contact from the information from an email send using apex
email services.I have created an apex class and associated an email service for the same.
I have a requirement to save attachments contained in those emails to a local folder in
system and provide a reference to the same while creating the case from email?
Anybode has the apex class code for the same.
 
 
Thanks and Regards
Raji
Hi all,
 
  I want to call an external url from a apex class,Is this possible?for eg:www.google.com
 
Thanks and Regards
Raji
Hi,

I'm a newbie in APEX. I would like to ask if it's possible to add a javascript inside a trigger. Say for example, I want to add a javascript alert() when the save button of Account is clicked. Is this possible? If it is, can you share me some examples?

Your help will be greatly appreciated.

Thanks a lot,
Ces
  • November 05, 2008
  • Like
  • 0
Hi all,
 
   I have developed a visual force report where i am showing the output as pdf.
But for the table below I have 11 columns to display.But I am seeing only
6 columns.How can I view all the columns in a page.Can I adjust the output
size
<apex:page controller="accountdetail" renderAs="pdf" >
  <h1><Center>Customer Visit Report</Center></h1><br><br></br></br>
</apex:dataTable>
 </apex:pageBlock>
<apex:pageBlock title="Consumption Information">
  <apex:dataTable value="{!consumption}" var="consumptions" 
cellPadding="4" border="1">
<apex:column >
<apex:facet name="header"><b>Account </b></apex:facet>
<apex:outputText value="{!consumptions.Account__c}"/>
</apex:column>

<apex:column >
<apex:facet name="header"><b> Product </b></apex:facet>
<apex:outputText value="{!consumptions.Product__c}"/>
</apex:column>
 
<apex:column >
<apex:facet name="header"><b> Rolling Sales </b></apex:facet>
<apex:outputText value="{!consumptions.Rolling_Sales__c}"/>
</apex:column>
 
<apex:column >
<apex:facet name="header"><b> Rolling Sales Last
Year</b></apex:facet>
<apex:outputText
value="{!consumptions.Rolling_Sales_LY__c}"/>
</apex:column>

<apex:column >
<apex:facet name="header"><b>Rolling Sales VS  Rolling Sales
Last Year</b></apex:facet>
<apex:outputText
value="{!consumptions.Rolling_Sales_Vs_Rolling_Sales_LY__c}"/
>
</apex:column>
 
<apex:column >
<apex:facet name="header"><b>Cumulated Sales</b></apex:facet>
<apex:outputText value="{!consumptions.Cumulated_Sales__c}"/>
</apex:column>
 

<apex:column >
<apex:facet name="header"><b>Cumulated Sales 
LY</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Sales_LY__c}"/>
</apex:column>
 

<apex:column >
<apex:facet name="header"><b>Cumulated Sales VS Cumulated
Sales  LY</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Sales_Vs__c}"/>
</apex:column>
 
 
<apex:column >
<apex:facet name="header"><b>Cumulated
Volume</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Volume__c}"/>
</apex:column>
 
<apex:column >
<apex:facet name="header"><b>Cumulated Volume 
LY</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Volume_LY__c}"/>
</apex:column>
 

<apex:column >
<apex:facet name="header"><b>Cumulated Volume  VS Cumulated
Volume  LY</b></apex:facet>
<apex:outputText
value="{!consumptions.Cumulated_Volume_Vs_Cumulated_Volume_LY
__c}"/>
</apex:column>
</apex:dataTable>
 </apex:pageBlock>
 
</apex:page>
 
 
 
Thanks and Regards
Raji