• Aam M
  • NEWBIE
  • 40 Points
  • Member since 2017
  • Salesforce Consultant
  • Race2Cloud Technologies Private limited

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 1
    Likes Given
  • 23
    Questions
  • 27
    Replies
I've a requirement related to campaigns.
I need to find campaigns associated to a contact. and if the contact has multiple campaigns, and for the 1st campaign that contact has Responded(camaign member status is responded) then that campaign name should be updated in the contact's field!
Can anyone explain me how can I update this, by writing trigger? or can I get a similar kind of trigger code
  • September 28, 2018
  • Like
  • 0
I've a requirement, where I'll get an Email in salesforce Account.
In Email body each line represent like this, In the 1st Line Account No, 2nd Line Account Name, 3rd is Contact name, like that every line will have content,
With this can we be able to pull the email data in to Opportunity??

Sample Email body:
_____
1
A & K
Raj
9871276622.
abc@gmail.com
4/20/2018
5/20/2018
Rs 10,000.00 
__
All this data can we put into Opportunity from the email.

 
  • May 01, 2018
  • Like
  • 0
I want to break pageblocktable in two rows.
For ex.
I've headers like below image
User-added image
 I want to display Headers and values like the below image.
Can any suggest solution

User-added image

Please help to build this. This is a single productlineitem. I want to display all productlineitems like this 
  • January 10, 2018
  • Like
  • 0
How to put table inside a table in VF page? Please give me example.
  • January 09, 2018
  • Like
  • 0
I've a Contact email address. Whenever I add Contact's email. ITs email should be updated in account's Email. How to achiev this by configuration or customization?
  • December 19, 2017
  • Like
  • 0
I've a requirement of auto fetching email address in "To" Field when I click Send Email button in Activity History of Account, Any solution?

And If I've multiple Contacts in Account, And I want to send that email to Primary Contact. So I want to populate primary contact email in To field.

Please provide some idea.
 
  • December 18, 2017
  • Like
  • 0
I'm not able to repeat my header and footer in all pages of Quote PDF. As I've to put logo in the header for every page. Can any suggest me the solution?..  IT would be great to see the logo on top left of every page and in top right  some text and footer some text.. Please help me how to achieve this! 
<head>
        <style type="text/css" media="print">
            <apex:outputPanel layout="none"  >
                .watermark {
                    background-repeat: no-repeat;
                    background-image: url('{!URLFOR($Resource.draftpdf)}');
                    background-position: center;
                    background-attachment: fixed;
                    
                }
    @page {
        margin-top: 20px; // use whatever values are appropriate
        margin-bottom:100px;
        @Top-Left{
               
              
               content: element(header);
                
         }
         @Top-right{
               
               content : element(headerright);
                
         }
          
        @bottom-left {
                content : "Lo Ruiz 4470, Renca, Santiago | Chile ";
                //color : #808080; // optional as this can be in your def for content
        }
    }
            </apex:outputPanel>
            
            
        </style>
    </head>
    <div>
        <div class="header" style="float:left;width:75%" >

                <div><apex:image value="{!$Resource.PdfLogo}"  alt="Description of image here"/></div>
                
        </div>
        <div class="headerright">

                <div dir="rtl"><p style="font-weight: bold"> <br/>Conit<br/> Conveyor belt Group</p></div>
                
        </div>
    </div>

 
  • December 15, 2017
  • Like
  • 0
I've added a package of  salesforce sanbox in eclipse from one sandbox. And I want to deploy that to other Sandbox I'm facing some issues Showing error in the log as,
 
*** Deployment Log ***
Result: FAILED
Date: October 28, 2017 12:47:47 PM IST

# Deployed From:
   Project name: Expense Management
   Username: gurusfdc123@gmail.com
   Endpoint: test.salesforce.com

# Deployed To:
   Username: mujahidm@race2cloud.com
   Endpoint: login.salesforce.com

# Deploy Results:
   File Name:    applications/Expense_Management.app
   Full Name:  Expense_Management
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: tab - no CustomTab named Policy__c found

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Policy__c

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Policy__c

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Schema.Policy__c

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: pol

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: pol

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: expl

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: DML requires SObject or SObject list type: Expense_Line_Item__c

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Policy__c

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Policy__c

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Schema.Policy__c

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: pol

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: pol

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Travel_Request__c

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Travel_Request__c

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: Travel_Request__c

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: Travel_Request__c

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: trq

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: trq.Proposed_Client_to_Visit__r

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: acclist

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Schema.Expense_Line_Item__c

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: DML requires SObject or SObject list type: List<Expense_Line_Item__c>

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: CExList

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    layouts/Delivery_order__c-Delivery order Layout.layout
   Full Name:  Delivery_order__c-Delivery order Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/Delvery__c-Delivery Order Line Item Layout.layout
   Full Name:  Delvery__c-Delivery Order Line Item Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/Expense_Line_Item__c-Expense Line Item Layout Map.layout
   Full Name:  Expense_Line_Item__c-Expense Line Item Layout Map
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/Expense_Line_Item__c-Expense Line Item Layout.layout
   Full Name:  Expense_Line_Item__c-Expense Line Item Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/Expense__c-Expense Layout For Finance.layout
   Full Name:  Expense__c-Expense Layout For Finance
   Action:  NO ACTION
   Result:  FAILED
   Problem: Field:Name must not be Readonly

 
  • October 28, 2017
  • Like
  • 0
I've to create a VF page where I can put this VF in Accounts related list, so in VF page I can add and delete multiple contacts rows for that Account in its related list. 
Can anyone provide me the code?
  • October 10, 2017
  • Like
  • 0
I've created a lightning component and included that in VF page, and that component is button (ui:button),
For this ui:button component, I want write function when I click this button all contacts should be displayed in the screen, 
Can anyone tell me  the function?
 
<apex:page >
    <apex:includeLightning />

    <div style= "width:90%;height:70px;align:center" id="FlipContainer" />
    <br/>
    <div style= "width:90%;height:40px;align:center" id="ButtonCon" />
    
    
    <script>
    
    $Lightning.use("c:DemoFlipContain", function(){
       $Lightning.createComponent("c:FlipCard", 
                                  { 	borderColor : "#16325c", 
                                     	bgColor 	: "#16325c" ,
                                     	fontColor	: "White",
										frontText : "Race2Cloud Technologies",
                                   		backText : "Partnership with Salesforce"
                                  },
                                  "FlipContainer",
                                  function(cmp) {
                                      console.log('Component created, do something cool here');
                                     
                                  });  
         
        $Lightning.createComponent("ui:button",
          { label : "See Contacts!" },
          "ButtonCon",
          function(cmp) {
            
              
          });
    });
    </script>    
</apex:page>

 
  • October 09, 2017
  • Like
  • 0
I want to transfer complete data from one org to other org using eclipse IDE, can any one tell me full procedure to transfer because there are so many errors showing.

I downloaded one org's data by in eclipse as a project, and then i want to deploy to server(it means other org).. but it is showing so many errors.



How should i achieve this!! 
  • July 27, 2017
  • Like
  • 0
I have 3 mandatory fields in my VF page. 2 picklist mandatory field and one lookup,,
For those 2 picklists dependent picklists are there, whenever we change the picklist values, other dependent picklist value should Come,
But there are 3 mandatory fields so whenever i select one picklist value it shows error for all required fields to enter the value.,

please look into it,  & do the needful!

User-added image
  • July 26, 2017
  • Like
  • 0
1. I want to display other lookup fields when i select different values from picklist "COST HEAD", If i select value as opportunity, Lookup field should displayed next to the "Select Opportunity" Field, similarly same should be displayed for "Select Campaign" & "Select Project", But How can i give only one lookup field & in that lookup i should select either opporunity, Campaign or project , How should i achieve this???


2. If I give Rerendered to form level it is working but , all mandatory fields are showing error before entering the data,
For example, without entering Expens Report ID, if i select Cost Head picklist it will show error on all mandatory fields...
How should overcome this problem.. 

Please help me with the code & refer the screenshot & Code!! 



User-added image


 
<apex:page standardController="Expense_Line_Item__c" extensions="SaveAndNew" sidebar="false"  showHeader="true" >
  <style> span.dateFormat { display:none; } </style>
  <style>
        .text { font-family:Times New Roman ; font-size:13px; font-style:Bold; color:black;}
         
        .pbHeader{
            color:#01375B;
            width:100%;
            font-size:200%;
            font-family:;
        }
        .pbsHeader1
            color:#01375B;
            width:100%;
            font-size:200%;
            font-family;;
        }
   
     </style>  
 <apex:slds />  
 <div class="slds-scope">   
  
    <apex:form id="TR">
     
       
       
        <apex:pageBlock mode="mainDetail" tabStyle="Account" > 
        <apex:facet name="header">Line Items</apex:facet>
            <apex:pageBlockSection columns="2" title=" " collapsible="false"> 
                  <apex:pageBlockSectionItem > 
                        <apex:outputLabel Value="Expense Report Id" styleClass="text" />
                        <apex:inputField value="{!Expense_Line_Item__c.Expense__c}" style="width:150px;" />
                   </apex:pageBlockSectionItem>
                   <apex:pageBlockSectionItem >
                        <apex:outputLabel Value="Expense Line Item Description" styleClass="text" /> 
                        <apex:inputField value="{!Expense_Line_Item__c.Name}"  style="width:150px;" />
                  </apex:pageBlockSectionItem>
                            <apex:pageBlockSectionItem >
                            <apex:outputLabel Value="Date" styleClass="text" />
                            <apex:inputField value="{!Expense_Line_Item__c.Date__c}"  style="width:150px;" />
                            </apex:pageBlockSectionItem>
                            <apex:pageBlockSectionItem >
                            <apex:outputLabel Value="Bill Available" styleClass="text" /> 
                            <apex:inputField value="{!Expense_Line_Item__c.Bill_Available__c}"  />
                            </apex:pageBlockSectionItem>
                  
                 <!-- <apex:pageBlockSectionItem >
                 
                        <apex:outputLabel Value="Date" styleClass="text" />
                        <apex:inputField value="{!Expense_Line_Item__c.Date__c}" style="width:150px;" />                   
                  </apex:pageBlockSectionItem>-->
                    
                  <!--<apex:pageBlockSectionItem >
                        <apex:outputLabel Value="Expense Line Item Description" styleClass="text" /> 
                        <apex:inputField value="{!Expense_Line_Item__c.Name}" style="width:150px;" />
                  </apex:pageBlockSectionItem>-->
                    
                           
                    
                  <apex:pageBlockSectionItem >
                         <apex:outputLabel Value="Merchant" styleClass="text" />
                         <apex:inputField value="{!Expense_Line_Item__c.Merchant__c}" style="width:150px;" />
                  </apex:pageBlockSectionItem>
                    
                  <apex:pageBlockSectionItem >
                         <apex:outputLabel Value=" Merchant GST Number" styleClass="text" />
                         <apex:inputField value="{!Expense_Line_Item__c.Merchant_GST_Number__c}" style="width:150px;"/>
                  </apex:pageBlockSectionItem>
                    
                  </apex:pageBlockSection>
                
                  <apex:pageBlockSection columns="2" title="Expense Details " collapsible="true">
                   
                  <apex:pageBlockSectionItem >  
                         <apex:outputLabel Value="Approved" styleClass="text" />  
                         <apex:inputField value="{!Expense_Line_Item__c.Approved__c}" />
                  </apex:pageBlockSectionItem>    
                  
                  <apex:pageBlockSectionItem > 
                         <apex:outputLabel Value="Amount" styleClass="text" />     
                         <apex:inputField value="{!Expense_Line_Item__c.Amount__c}"  style="width:150px;" />
                  </apex:pageBlockSectionItem>
                    
                 <apex:pageBlockSectionItem >
                         <apex:outputLabel Value="Payment Type" styleClass="text" /> 
                         <apex:inputField value="{!Expense_Line_Item__c.Payment_Type__c}" style="width:150px;"  />
                  </apex:pageBlockSectionItem> 
                  
                 
                 
                 <apex:pageBlockSectionItem >
                         <apex:outputLabel Value="Cost Head" styleClass="text" />   
                         <apex:inputField value="{!Expense_Line_Item__c.Cost_Head__c}" style="width:150px;" required="true" >
                         <apex:actionSupport event="onchange" rerender="TR" />
                         </apex:inputField>
                  </apex:pageBlockSectionItem>
                    
                  <apex:pageBlockSectionItem >
                         <apex:outputLabel Value="Select Campaign" styleClass="text" />   
                         <apex:inputField value="{!Expense_Line_Item__c.Related_to_Campaign__c}" style="width:150px;" rendered="{!IF( Expense_Line_Item__c.Cost_Head__c== 'Campaign',true,false  )}" />
                  </apex:pageBlockSectionItem>
                     
                  <apex:pageBlockSectionItem >
                         <apex:outputLabel Value="Select Opportunity" styleClass="text" /> 
                         <apex:inputField value="{!Expense_Line_Item__c.Related_to_Opportunity__c}" style="width:150px;" rendered="{!IF( Expense_Line_Item__c.Cost_Head__c== 'Opportunity',true,false  )}" />
                  </apex:pageBlockSectionItem>
                    
                  <apex:pageBlockSectionItem >
                         <apex:outputLabel Value="Select Project" styleClass="text" /> 
                         <apex:inputField value="{!Expense_Line_Item__c.Project__c}" style="width:150px;" rendered="{!IF( Expense_Line_Item__c.Cost_Head__c== 'Project',true,false  )}" />                                                            
                  </apex:pageBlockSectionItem>
                      
                  
                    <apex:pageBlockSectionItem >
                         <apex:outputLabel Value="Expense Head" styleClass="text" /> 
                         <apex:inputField value="{!Expense_Line_Item__c.Expense_Head__c}" style="width:150px;" required="true" >
                         <apex:actionSupport event="onchange" rerender="TR" />  
                         </apex:inputField>
                  </apex:pageBlockSectionItem>
                     
                        
                  <!-- <apex:outputPanel id="ren">-->
                    
                  
                  <!-- </apex:outputPanel> -->
                  <!--  <apex:pageBlockTable value="{!Expense_Line_Item__c}" var="item" columns="2" >
                  <apex:column> 
                  <apex:outputLabel >  
                  <apex:inputField label="City"  value="{!item.City__c}" rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Travel',true,false )}" /></apex:outputLabel>
                  <apex:inputField label="Mode of travel" value="{!item.Mode_Of_Travel__c}" rendered="{!IF(Expense_Line_Item__c.Expense_Head__c== 'Travel',true,false  )}" />
                  <apex:inputField label="Location from" value="{!item.Location_From__c}" rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Travel',true,false  )}" /> 
                  <apex:inputField label="Location to" value="{!item.Location_To__c}" rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Travel',true,false  )}" /> </apex:column>
                  <apex:column>       
                  <apex:inputField value="{!item.Sub_Expense__c}" rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Food',true,false  )}" /> </apex:column>
                  <apex:column>           
                  <apex:inputField value="{!item.Sub_Expense__c}" rendered="{!IF(Expense_Line_Item__c.Expense_Head__c== 'Entertainment',true,false  )}" /> </apex:column>
                  <apex:column>          
                  <apex:inputField value="{!item.Sub_Expense__c}" rendered="{!IF(Expense_Line_Item__c.Expense_Head__c== 'Lodging',true,false  )}" /> </apex:column>
                  <apex:column> <apex:inputField value="{!item.Sub_Expense__c}" rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Others',true,false  )}" /> </apex:column>
                                                              
                  </apex:pageBlockTable>-->
              
               
                  <apex:pageBlockSectionItem rendered="{!IF( Expense_Line_Item__c.Expense_Head__c == 'Travel',true,false )}" >
                         <apex:outputLabel Value="City" styleClass="text" />
                         <apex:inputField value="{!Expense_Line_Item__c.City__c}" rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Travel',true,false )}" style="width:150px;" />
                  </apex:pageBlockSectionItem>
                   
                  <apex:pageBlockSectionItem rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Travel',true,false )}" >
                         <apex:outputLabel Value="Mode Of Travel" styleClass="text" />
                         <apex:inputField value="{!Expense_Line_Item__c.Mode_Of_Travel__c}" rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Travel',true,false  )}" style="width:150px;" />
                   </apex:pageBlockSectionItem>
                   
                   <apex:pageBlockSectionItem rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Travel',true,false )}" >
                       <apex:outputLabel Value="Location From" styleClass="text" />
                       <apex:inputField value="{!Expense_Line_Item__c.Location_From__c}" rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Travel',true,false  )}" style="width:150px;" />
                   </apex:pageBlockSectionItem>  
                   
                    <apex:pageBlockSectionItem rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Travel',true,false )}" >
                       <apex:outputLabel Value="Location To" styleClass="text" />
                       <apex:inputField value="{!Expense_Line_Item__c.Location_To__c}" rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Travel',true,false  )}" style="width:150px;" />
                   </apex:pageBlockSectionItem>
                   
                   <apex:pageBlockSectionItem rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Food',true,false  )}" >
                        <apex:outputLabel Value="Sub Expense" styleClass="text" />
                        <apex:inputField value="{!Expense_Line_Item__c.Sub_Expense__c}" rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Food',true,false  )}" style="width:150px;"  />
                   </apex:pageBlockSectionItem>
                   
                    <apex:pageBlockSectionItem rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Entertainment',true,false  )}" >
                        <apex:outputLabel Value="Sub Expense" styleClass="text" />
                        <apex:inputField value="{!Expense_Line_Item__c.Sub_Expense__c}" rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Entertainment',true,false  )}" style="width:150px;" />
                   </apex:pageBlockSectionItem>
                   
                    <apex:pageBlockSectionItem rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Lodging',true,false  )}" >
                        <apex:outputLabel Value="Sub Expense" styleClass="text" />
                   <apex:inputField value="{!Expense_Line_Item__c.Sub_Expense__c}" rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Lodging',true,false  )}" style="width:150px;"  />
                   </apex:pageBlockSectionItem>
                   
                    <apex:pageBlockSectionItem rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Others',true,false)}" >
                        <apex:outputLabel Value="Sub Expense" styleClass="text" />
                        <apex:inputField value="{!Expense_Line_Item__c.Sub_Expense__c}" rendered="{!IF( Expense_Line_Item__c.Expense_Head__c== 'Others',true,false  )}" style="width:150px;" />
                   </apex:pageBlockSectionItem>
                    <apex:pageBlockSectionItem >
                         <apex:outputLabel Value="Comments" styleClass="text" /> 
                         <apex:inputTextarea value="{!Expense_Line_Item__c.Comments__c}" style="width:150px;" />
                  </apex:pageBlockSectionItem>                                  
               </apex:pageBlockSection>   
                     
            </apex:pageBlock>
            <div align="center" draggable="false" >
            <apex:commandButton action="{!Save}" value="Save" style="font-style:BOld;size:20px;font-family:Georgia ;color:Black; background:LightBlue;width:95px;" /> &nbsp;
            <apex:commandButton action="{!Cancel}" value="Cancel" style="font-style:BOld;size:20px;font-family:Georgia ;color:Black; background:LightBlue;width:95px;"  /> &nbsp;
            <apex:commandButton action="{!saveNew}" value="Save & New" style="font-style:BOld;size:20px;font-family:Georgia ;color:Black; background:LightBlue;width:95px;" />
            </div> 
       
    </apex:form>
    </div>
    </apex:page>
  • July 26, 2017
  • Like
  • 0
I want to change the UI for creating records for custom Object, unlike Salesforce default UI, How to modify the UI look & feel

Any help???
  • July 19, 2017
  • Like
  • 0
Please have a look into the picture, I want to populate value in the Amount field when I select picklist value as Per Diem, and that amount should be fetched from Policy object Per diem field, this per diem field value should be shown in that Expense Line Item's Amount field..

How can I get this???
User-added image
User-added image


Help needed!!


 
  • July 19, 2017
  • Like
  • 0
I've created a VF Page where I want to make picklist readonly... I mean while creating a new record that picklist should be readonly..
How should I achieve this??
 
  • July 17, 2017
  • Like
  • 0
I've one VF page & used standardController to save the records of that Custom Object that is used in standardController..
But I want to display other Custom object data in that VF Page for some use I have to hide those field.
But How should I fetch other object records to this VF Page .

Any Help will be appreciated!


 
  • July 17, 2017
  • Like
  • 0
In custom "Save and New" button  I've to fetch the same parent from Lookup in every record when we click the save & new button.
How can we achive this ? Please reply ASAP
User-added image

Like in this pic every new record same Account should be selected when we select for the first record!! 


Anyone Please reply ASAP.
It will be very helpful for us.

 
  • July 11, 2017
  • Like
  • 0
I want to write trigger to enable a checkbox in contact whenever its Account is modified(updated). 
I'm not able to put the condition for Account updated or not! Can you guys provide the logic?? 
 
  • April 12, 2017
  • Like
  • 1
How to display hierarchy of self lookup Custom Object


Please share Apex and VF code :) 
  • March 21, 2017
  • Like
  • 0
I want to write trigger to enable a checkbox in contact whenever its Account is modified(updated). 
I'm not able to put the condition for Account updated or not! Can you guys provide the logic?? 
 
  • April 12, 2017
  • Like
  • 1
I've a requirement related to campaigns.
I need to find campaigns associated to a contact. and if the contact has multiple campaigns, and for the 1st campaign that contact has Responded(camaign member status is responded) then that campaign name should be updated in the contact's field!
Can anyone explain me how can I update this, by writing trigger? or can I get a similar kind of trigger code
  • September 28, 2018
  • Like
  • 0
I want to break pageblocktable in two rows.
For ex.
I've headers like below image
User-added image
 I want to display Headers and values like the below image.
Can any suggest solution

User-added image

Please help to build this. This is a single productlineitem. I want to display all productlineitems like this 
  • January 10, 2018
  • Like
  • 0
How to put table inside a table in VF page? Please give me example.
  • January 09, 2018
  • Like
  • 0
I've a Contact email address. Whenever I add Contact's email. ITs email should be updated in account's Email. How to achiev this by configuration or customization?
  • December 19, 2017
  • Like
  • 0
I've added a package of  salesforce sanbox in eclipse from one sandbox. And I want to deploy that to other Sandbox I'm facing some issues Showing error in the log as,
 
*** Deployment Log ***
Result: FAILED
Date: October 28, 2017 12:47:47 PM IST

# Deployed From:
   Project name: Expense Management
   Username: gurusfdc123@gmail.com
   Endpoint: test.salesforce.com

# Deployed To:
   Username: mujahidm@race2cloud.com
   Endpoint: login.salesforce.com

# Deploy Results:
   File Name:    applications/Expense_Management.app
   Full Name:  Expense_Management
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: tab - no CustomTab named Policy__c found

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Policy__c

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Policy__c

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Schema.Policy__c

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: pol

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: pol

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: expl

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: DML requires SObject or SObject list type: Expense_Line_Item__c

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Policy__c

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Policy__c

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Schema.Policy__c

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: pol

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: pol

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Travel_Request__c

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Travel_Request__c

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: Travel_Request__c

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: Travel_Request__c

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: trq

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: trq.Proposed_Client_to_Visit__r

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: acclist

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Schema.Expense_Line_Item__c

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: DML requires SObject or SObject list type: List<Expense_Line_Item__c>

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: CExList

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    layouts/Delivery_order__c-Delivery order Layout.layout
   Full Name:  Delivery_order__c-Delivery order Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/Delvery__c-Delivery Order Line Item Layout.layout
   Full Name:  Delvery__c-Delivery Order Line Item Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/Expense_Line_Item__c-Expense Line Item Layout Map.layout
   Full Name:  Expense_Line_Item__c-Expense Line Item Layout Map
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/Expense_Line_Item__c-Expense Line Item Layout.layout
   Full Name:  Expense_Line_Item__c-Expense Line Item Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/Expense__c-Expense Layout For Finance.layout
   Full Name:  Expense__c-Expense Layout For Finance
   Action:  NO ACTION
   Result:  FAILED
   Problem: Field:Name must not be Readonly

 
  • October 28, 2017
  • Like
  • 0
I want to transfer complete data from one org to other org using eclipse IDE, can any one tell me full procedure to transfer because there are so many errors showing.

I downloaded one org's data by in eclipse as a project, and then i want to deploy to server(it means other org).. but it is showing so many errors.



How should i achieve this!! 
  • July 27, 2017
  • Like
  • 0
I have 3 mandatory fields in my VF page. 2 picklist mandatory field and one lookup,,
For those 2 picklists dependent picklists are there, whenever we change the picklist values, other dependent picklist value should Come,
But there are 3 mandatory fields so whenever i select one picklist value it shows error for all required fields to enter the value.,

please look into it,  & do the needful!

User-added image
  • July 26, 2017
  • Like
  • 0
I've one VF page & used standardController to save the records of that Custom Object that is used in standardController..
But I want to display other Custom object data in that VF Page for some use I have to hide those field.
But How should I fetch other object records to this VF Page .

Any Help will be appreciated!


 
  • July 17, 2017
  • Like
  • 0
In custom "Save and New" button  I've to fetch the same parent from Lookup in every record when we click the save & new button.
How can we achive this ? Please reply ASAP
User-added image

Like in this pic every new record same Account should be selected when we select for the first record!! 


Anyone Please reply ASAP.
It will be very helpful for us.

 
  • July 11, 2017
  • Like
  • 0
How to create multiple records of an object using lightning component.Please give an example or sample code

Hi

 

I have a VF page where in I am using case standard controller.

The first time when the page is displayed 2 input fields (eg.) are there i.e. Name and Email. which are static. Another 2 fields are their like Vendor Name and Vendor Contact No. which are dynamic.

 

Now, I want to implement the functionality wherein if a user clicks on Add Row button,  1more row will appear to enter a value in both  the fields(Vendor name and Vendor Contact No.). So, if he clicks the button 5 times, 5 rows shud appear with thses two columns.

After providing the inputs, he will click on "Save " button, and the record should be saved wherein the inputs provided in multiple rows should be saved into the related list of the Case detail page (Case details page will contain the information like Name and Email). Request you to please forward me the code for the above mentioned functionality. Since its a n urgent requirement. An early reply will be highly appreciated. Thanks.

  • May 07, 2010
  • Like
  • 0
I've got an error from last challange in "Developer Console Basics":

"Challenge Not yet complete... here's what's wrong: 
Could not find the contact's name in the debug log. Be sure to run a query for your record, and to write your contact's name to the debug log using the System.debug() method."

But I'm sure that debog log include the correct lastname, first name as requested and use SOSL.

Does anyone else have the same issue?