• Raza
  • NEWBIE
  • 45 Points
  • Member since 2018

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 5
    Questions
  • 15
    Replies
how to create a tab in feedback object and how to insert the data pls help me
Convert Currency Into Words In Salesforce
  • June 25, 2018
  • Like
  • 0
Hi 
please help me
How to make component that will use to create a new contact with account lookup.(using component)
 
  • June 09, 2018
  • Like
  • 0
I am the beginner in salesforce.
Please help me.
What is trigger execution?
  • May 27, 2018
  • Like
  • 0
Hi, I want to create custom lookup page please help me:
 
  • May 26, 2018
  • Like
  • 0

Hi ,
how to iterate all the value in for loop , but below code has been ovverite old values and latest values printing , how to avoid overrite in for loop ?

var strgrpname = event.getParam("strgroupname");  ex: first time "Test1" , second time "Test2" , third time "Test3"
var strname = [];
         for(var strbal  in strgrpname ){
          strname .push(strbal);      
        } 
component.set("v.name",strname ) ;
console.log('pirnt-->'+component.get("v.name" )); result : Test3 .
Hi all! 

I have been trying to do this for a while! I need to get my reports to show month and year in format MMM-YY e.g. Jun-18  and be in the correct order. I have tried putting it as text but it puts them in the order  Jan-18, Jan-19, Feb-18, Feb-19 etc.  

Any help would be great!
Thanks!
Emily 
hi iam going to strt , lightning  and integration in salesforce, so iam facing some difficulty to strt in trailhead , does any body have videos, 
thanks and regards
 priya
Hi 
I am newbie in salesforce development. Can someone help me with the test class for the below interface method .

public with sharing class DebugMain {
    
    public interface IMethodEntry
    {
        void MainEntry(String mainObject);
        void InProgressEntry(String mainObject);
    }

    public static IMethodEntry activefunction = null;
    
    public static Boolean FakeException = false;

    public static void MainEntry(String mainObject)
    {   
        DebugHelper.Push('MainEntry mainObject: ' + mainObject);
        try
        {
            if(fakeexception && activefunction==null ) {
                activefunction.InProgressEntry(mainObject);
            }                        
            if(activefunction != null)  
            {
                activefunction.InProgressEntry(mainObject);
                return;
            }   
        
            DebugHelper.Pop();
        }
        catch(Exception ex)
        {
            DebugHelper.DebugException(ex);
            //DebugHelper.DebugException(ex, mainObject);
            DebugHelper.PopAll();   
        }
    }    
}

Some body help me to improve the code coverage and how to pass the activefunction value in to the test class
@isTest
public class DebugMain_Test
{
    
    static testmethod void DebugMain123()
    {          
        //DebugMain d = new DebugMain();
       // DebugMain.IMethodEntry inf = new DebugMain.IMethodEntry();
       // inf.activefunction != null ;        
        //DebugMain.activefunction = ; 
        DebugMain.MainEntry('Account');
        DebugHelper.push('Account');        
        
        LMNX_VF_ServiceReport lsv = new LMNX_VF_ServiceReport();
        lsv.MainEntry('LMNX_VF_ServiceReport');
        lsv.InProgressEntry('LMNX_VF_ServiceReport');
         DebugMain.MainEntry('LMNX_VF_ServiceReport');
         DebugHelper.Pop();          
    }
}
Scenario 1: The ‘C Name Lookup’, field has the ability to reflect itself if it is at the top of the Hierarchy. 
Given there's an Salesforce account with a 'CI company ID'
and 'CI company id' is equal to the 'CaI Ultimate parent Company ID'
When 'CaI Ultimate parent Company ID' is created or modified and 'Override C Name' is not checked
Then the ‘C Name Lookup’ field should be the 'Account' itself.
  • June 26, 2018
  • Like
  • 0
Hi,
I have to two custom object Building__c and lease__c bothe objects have a firld name Expiry date.Building__c is parent and lease__c is child in look relatioship.I can not create MD relatioship between them because of some reason.now i want a trigger which pick the minimum expiry date from the lease records and upadte by building__c expiry date.

Thanks in advence!
how to create a tab in feedback object and how to insert the data pls help me
I Created a Custom Home Page in Lightening below steps followed

Step1: Launch Trail Head
Step2: Navigate to Home Page
Step3: Click on gear icon from drop down,select edit page
Step4: At top left corner click on drop down for Pages and select New page
Step5: In Create a New Lightning Page select Home Page
Step6: Entered Label as Sales Home and click Next
Step7: Choose Page template as Standard Home Page and click Finish
Step8: Drag and Drop below standard lightning components in page view and click save
Performance
Assistant
Today's Tasks
Key Deals
Step9: In Page saved popup click on Activate button
Step10: In Activate popup select "set this page as default home page" and click next
step11: In Review assignments click activate button

Actual Result: When navigated back to the app launcher and selected sales app then observed label is home
Expected Result: Label should be Sales Home

Please Help resolve the issue

 
Hi, I want to create custom lookup page please help me:
 
  • May 26, 2018
  • Like
  • 0
There seems to be login error whenever I try to login into Trailhead through my Gmail ID? It has never occurred before. What to do?
Hi All,

Am trying to auto Populate the Task WhatID lookup Based Contact Lookup.

Am getting Following Error:
Error: Compile Error: Invalid identifier ''. Apex identifiers must start with an ASCII letter (a-z or A-Z) followed by any number of ASCII letters (a-z or A-Z), digits (0 - 9), '$', '_'. at line 12 column 23

Kindly let me know what I have to do here?

This is my Trigger.
trigger populateAccount on task (before insert, before update)
{
  Set<ID> setConIds = new Set<ID>(); 
  
  for(task obj : trigger.new)
   {
       if(obj.whoid!= null)
       setConIds.add(obj.Whoid);
   
   } 
   MAP<ID,Contact> mapCon =
   new MAP<ID,Contact>([Select Account_name__C from Contact where id in: setConIds]);
   
   
   for(Task  obj : trigger.new)
   {
        if(obj.Whoid!= null)
          {
            Contact  c = mapCon.add(obj.WhoiD);
            obj.WhatID= c.Account_name__C;         
       
   }
   

}
 I scheduled one batch  job at "0 35 23 ? * * *" ......11.35 PM Every day.
I see the sheduled job is queued in Apex jobs (setup>Monitor jobs) , but I dint see batch job....
could anyone please explain me regarding this
Getting the following error and cannot complete Trailhead challenge.

Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Delete failed. First exception on row 0 with id 00141000013JMSvAAO; first error: DELETE_FAILED, Your attempt to delete TestMyCodeCo could not be completed because it is associated with the following cases.: 00001055 : []
Hi Guys

I have created a Vf page which like a custom report.but here my problem is i am not unable to grouping the record .see my  screenshot now i am getting this User-added image
 
public with sharing class PartyMaster {



    public List<MasterTest__c> accounts {get;set;}  
    public String[] Groups {get;set;}

    public MasterTest__c j { get; set; }
    
    public String Id { get; set; }
    public List<MasterTest__c> jb { get; set; }
    public String keyword { get; set; }
   
   //Dc 
    public PartyMaster (){
     jb=new List<MasterTest__c>();
    j=new MasterTest__c();
}

    public PageReference getid() {
    jb=[select ID, Name,Group__c,Master_Code__c,Date__c From MasterTest__c where Name=:id ];
        return null;
    }

     public PageReference getKey_search() {
 jb=[select ID, Name,Group__c,Master_Code__c,Date__c From MasterTest__c where Name=:id ];
        
        return null;
    }

//we need to assign some temp var,for data type
       public date startdate1;
       public date enddate1;
public PageReference go() {
    startdate1=j.Date__c;
    enddate1=j.Date__c;
    
    jb=[select  ID, Name,Group__c,Master_Code__c,Date__c From MasterTest__c where (Date__c>=:startdate1) AND (Date__c<=:enddate1)order by Date__c ASC];
    
        return null;
    }
    

}
}

--------------------------------------------------------------------------------------

<apex:page controller="PartyMaster" sidebar="false" showHeader="false"><style type="text/css" media="print">
@media print
{
#non-printable { display: none; }
#printable {
display: block;
width: 100%;
height: 100%;
}
}
</style>

<style type = "text/css">
        .colHeadr {text-align:center;}
        .colHeadrRight{
            text-align:right;
        }
        }
    </style>


 <apex:form id="dt">
  <apex:define name="body">
            <div style="width:1250px;margin: 0px auto 10px auto;background-color:Gray;border: 1px solid black;">
            <apex:image id="theImage" value="{!$Resource.Emami}" width="100" height="100"/>
            <apex:outputLink style="font-weight: bold;float:right;" value="{!URLFOR($Page.LoginPage)}"><b>Back To Home</b>
            </apex:outputLink>
  <apex:pageBlock title="BankBook Details To Search">
  
        
     <!---search By Date Range-->
    <b>Start Date</b><apex:inputField value="{!j.Date__c}"/>&nbsp;&nbsp;&nbsp;
     <b>End Date</b><apex:inputField value="{!j.Date__c}"/>
     <apex:commandButton value="Go" action="{!go}" reRender="dt" style="background:pink"/>
      <b><apex:commandLink id="printable"  onclick="JavaScript:window.print();" value="Print"/></b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <!---search By word-->
      <apex:inputText value="{!keyword}"/>
      <apex:commandButton value="Search By Group" action="{!getKey_search}" style="background:pink"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     
     
      <!---search By Id-->
      <apex:inputtext value="{!Id}"/>
      <apex:commandButton value="Search By Party" action="{!getid}" style="background:pink"/>
     
     <!---which fiels we want to display -->
   <apex:pageBlockSection columns="1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   <apex:pageBlockTable var="jj" value="{!jb}" style="width:100%; font-size:10pt">
   <apex:column headerValue="Date" value="{!jj.Date__c}"/>
    <apex:column headerValue="Group" value="{!jj.Group__c}"/>
    
      <apex:column headerValue="Party Name" value="{!jj.Master_Code__c}"/>
      


     
   
    </apex:pageBlockTable>
   </apex:pageBlockSection>
  </apex:pageBlock>
 
  </div>
        </apex:define>
        <center><br/>
        <b><i style="font-size:10px;color:red;">Developed By GlobalNest IT Solution Pvt.Ltd. <a href="http://www.globalnest.com" target="_blank">[http://www.Globalnest.com]</a> </i></b>
    </center><br/>
    </apex:form>
</apex:page>
but i need this type of grouping  .,....

User-added image