• Surender reddy Salukuti
  • NEWBIE
  • 20 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 3
    Likes Received
  • 0
    Likes Given
  • 35
    Questions
  • 11
    Replies
HI Every one,

How i need to Display custom icons in Data table using lightning ?

if any one know help me.

Thank you 
Surender Reddy 
HI Every one ,

How we can push Custom SVg s in Lightning Datat table ?

If any one know please help me?

Thank you
Surender Reddy
Hi Every one,

I need to disable keyboard functionalites in salesforce lightning how can we do that ? 
Like  key E functionaliy while clicking E it's opening Edit details.. 
 If any one know please  help me .
 
Thanks
Surender reddy
HI ,

How can i close popup when i click ESC button on Key boar in salesforce lightning .

Please provie me solution 

Thank you
Surender reddy
 

Hi Every one ,

How to add files or attachments related list in Custom model popup in lightning component?

actually we have requirement like it will need to use inside custom popup 

if any one know please help me in this scenario .

Thanks
Surender reddy

Hi Everyone,

When i am writting Pd1 maintance exam i got error 


When executed, the BatchLeadConvertTest test class has test failures. All tests should pass.

Thank you
Hi Every one,

How can i add custom button on Contact Listview row in salesforce Lightning?
That button will copy selected Contacts 

Thank you
Surender Reddy 
Hi every one,

i have one scenario we wont to write trigger account and contact will have lookup relation ship if contacts will added automatically in the account object one custom field count will be increse (like lookup relation ship)

how can we acchive this if any one know please help me.
Thank you
Surender Reddy
9603757105
 
Hi Every one ,

Hi i am planiing to write Salesforce platform developer 1 certification exam please give me suggetions how can i prepare for this exam and which blogs i can fallow .
recently if any one wrote this exam please guide me.

Thank you
Surender Reddy
960375705
Hi every one,

actually my question is we are converting lead to account and contact and opportunity.

may i won t konw how many records are converted from lead to account 
and the total records which are converted from lead to account how can i caluclate it.


actually this question asked me one interviewr recently

Thank you
Surender reddy
9603757105


 
Hi everyone,

please tell me what is metadata?


Thank you
surender reddy
9603757105
Hi every one 
i am new to lightning 
actually my intention is inseart a contact record 

i wrote component
<aura:component controller="Lightning_sobject" >
    <aura:attribute name="con" type="contact" default="{'sObjectType':'contact','Lastname':'','FirstName':'','phone':''}"/>
    <aura:attribute name="result" type="string"/>
    
    <div class="Box">
        <lightning:card title="contact">
        <div class="mybox">
            <lightning:input label="first Name" value="{!v.con.Lastname}"/>
            <lightning:input label="Last Name" value="{!v.con.FirstName}"/>
            <lightning:input label="phone" value="{!v.con.phone}"/>
            </div>
            <aura:set attribute="footer">
                <lightning:button label="submit" onclick="{!c.show}"/>
            </aura:set>
    </lightning:card>
        {!v.result}
        </div>
    </aura:component>
apex class
public class Lightning_sobject {
    
    @Auraenabled
    public static string create(contact con){
        insert con;
        string result;
        return result;
   }
}
controller

({
    show : function(component, event, helper) {
        var con=component.get("v.con");
        var action=component.get("c.create");
        action.setparams({"con":con});
        action.setCallback(this,function(response){
            var state =response.getState();
            if(state==="SUCCESS"){
               var result=response.getReturnValue();
                console.log('Result:'+result);
                component.set("v.result",result);
            }else{
                console.log('Failed');
            }
            
        });
        $A.enqueueAction(action);
          }
})
when after insertion when i am cicking submit button i am getting Error
This page has an error. You might just need to refresh it. Action failed: c:Sobject_ex$controller$show [action.setparams is not a function] Failing descriptor: {c:Sobject_ex$controller$show}
 
if any one know help me

Thank you 
Surender Reddy.
Hi Every one,

i am new to lightning i am learning know

i wrote apex class-

public class Lightning_3 {
   
    @AuraEnabled
    public static List<contact> show(){
        List<contact> contacts=[select id,FirstName,LastName,phone from contact limit 5];
        return contacts;
    }
  }
and after i design my component
.<aura:component controller="Lightning_3" >
    <aura:attribute name="contacts" type="List"/>
    <aura:attribute name="columns" type="List"/>
    <aura:handler name="init" value="{!this}" action="{!c.callme}"/>
    <lightning:DataTable keyfield="id" data="{!v.contacts}" columns="{!v.columns}"/>
</aura:component>
and after my controller
({
    callme : function(component, event, helper) {
        
        component.set('v.columns',[
            
            {label: 'FirstName', fieldName: 'FirstName', type: 'text'},
            {label: 'LastName', fieldName: 'LastName', type: 'text'},
            {label: 'phone', fieldName: 'phone', type: 'text'},
            
        ]);
            var action=component.get("c.show");
            action.setCallback(this,function(response){
               var state=response.getState();
               if(state==='SUCCESS'){
              
                var result=response.getReturnValue();
                component.set("v.data",result);
              }
            });
            $A.enqueueAction(action);
          }
})

actuall my task is to show contact recorrds on data table using apex in lightning
when i running this program it snot showing any error but i am not getting out put it s showing blank page.
if you know any one help me.

Thank you
Surender reddy.

 
Hi Every one,
 i am new to lightning know i am learning Lightning.

actually i am invoking Apex class in Lightning

 i wrote the program

Apex class:
public class Lghtning_1 {
  @AuraEnabled
    public static string callme(){
        return 'surender reddy';
    } 
}
Lightning component:
<aura:component controller="Lghtning_1">
    <aura:attribute name="Result" type="string"/>
    <lightning:button label="submit" onclick="{!c.show}"/>
    
    Result:{!v.Result}
</aura:component>

Controll.js 
({
    show : function(component, event, helper) {
        
        var abc =component.get("c.callme");
        abc.setCallback(this,function(response){
            var state=response.getstate();
            if(state==="success"){
               var Result=response.getReturnvalue();
               component.set("v.Result",Result);
               }
        });
        $A.enqueueAction(abc);
        
    }
})
Applicatino call:
<aura:application >
    <c:Light_Apex/>
    </aura:application>
actually when i am execting this program i am getting error message like below

This page has an error. You might just need to refresh it. Error in $A.getCallback() [response.getstate is not a function] Callback failed: apex://Lghtning_1/ACTION$callme Failing descriptor: {c:Light_Apex}
plese help me any one.

Thank you
Surender Reddy.

 
Hi Every one,
 i am new to lightning know i am learning Lightning.

actually i am invoking Apex class in Lightning

 i wrote the program

Apex class:
public class Lghtning_1 {
  @AuraEnabled
    public static string callme(){
        return 'surender reddy';
    } 
}
Lightning component:
<aura:component controller="Lghtning_1">
    <aura:attribute name="Result" type="string"/>
    <lightning:button label="submit" onclick="{!c.show}"/>
    
    Result:{!v.Result}
</aura:component>

Controll.js 
({
    show : function(component, event, helper) {
        
        var abc =component.get("c.callme");
        abc.setcallback(this,function(response){
            var state=response.getstate();
            if(state==="success"){
               var Result=response.getReturnvalue();
               component.set("v.Result",Result);
               }
        });
        $A.enqueueAction(abc);
        
    }
})
Applicatino call:
<aura:application >
    <c:Light_Apex/>
    </aura:application>
actually when i am execting this program i am getting error message like below

This page has an error. You might just need to refresh it. Action failed: c:Light_Apex$controller$show [abc.setcallback is not a function] Failing descriptor: {c:Light_Apex$controller$show}

plese help me any one.

Thank you
Surender Reddy.

 
Hi every one,

What is recursive trigger ? and where it is yousefull in real time and how it handel?

what is circular trigger ? and where it is usefull how its handele?

plese tell me answer if any one know a bout this.


Thank you,
Surender Reddy.
Hi every one,

actually i wrote visual force page 
<apex:page standardController="account" contentType="Application/vnd.ms-excel">
    <apex:form>
    <apex:pageblock title="account">
        <apex:pageBlockTable value="{!account.contacts}" var="contacts">
            <apex:column value="{!contact.name}"/>
            <apex:column value="{!contact.phone}"/>
      </apex:pageBlockTable>
        </apex:pageblock>
   </apex:form>
</apex:page>

actually my intention is i want to know how to use contentType in vf page and how it display .
i wrote above program previed this program i am ot geeting error
but it s not showing any out put.

please let me know if any one knows about it 

Thank you
surender reddy

 
Hi Every one,

May i know about <apex:inlineedit support> 
where it is  used and why it is used .

if you know any one about it please tell me

Thank you
surenyder redd
Hi everyone,
 i written this program using standard set controller

public class con_dele {
    public List<contact> contacts {set;get;}
    
    public con_dele(Apexpages.StandardSetController controller){
        List<string> fields = new List<string>{'firstname','lastname','phone'};
            controller.addFields(fields);
           contacts=(List<contact>)controller.getSelected();
        
    }
    public pagereference assiagn(){
        user u =[select id from user where alias='reddy'];
        for(contact c: contacts){
            c.ownerid=u.id;
        }
        update contacts;
        pagereference p = new pagereference('/003/o');//error in this line
        return p;
        
    }

}
Error -Constructor not defined: [pagereference].<Constructor>(String)


Thank you 
surender reddy
Hi Every one,

I wrote program using Extension concpt

Apex program
public class Quick_quote {
    public Account acc      {set;get;}
    public contact con      {set;get;}
    public opportunity opt  {set;get;}
    public string quotename {set;get;}
    
    public Quick_quote(Apexpages.StandardController controller){
        List<string> fields = new List<string>{'name','phone','industry','rating'};
            controller.addfields(fields);
           con=new contact();
           opt= new opportunity();
        acc=(account)controller.getRecord();
    } 
    }
Visual force program

<apex:page standardController="Account" extensions="Quick_quote">
   <apex:sectionHeader title="Quick quote" subtitle="new quick quote"/> 
    <apex:form>
        <apex:pageblock>
    <apex:pageBlockSection title="Account" collapsible="false">
        <apex:inputField value="{!Account.name}"/>
        <apex:inputField value="{!account.phone}"/>
        <apex:inputField value="{!account.industry}"/>
        <apex:inputField value="{!account.rating}"/>
        </apex:pageBlockSection>
        <apex:pageBlockSection title="Contact" collapsible="false">
            <apex:inputText value="{!con.firstname}"/>
            <apex:inputText value="{!con.lastname}"/>
            <apex:inputText value="{!con.phone}"/>
            <apex:inputText value="{!con.Email}"/>
        </apex:pageBlockSection>
            <apex:pageBlockSection title="opportunty" collapsible="false">
                <apex:inputText value="{!quotename}"/>
                </apex:pageBlockSection>
            </apex:pageblock>
    </apex:form>
    </apex:page>

When i am executig this program i am getting error 
Error-
Maximum stack depth reached: 1001 

Thank you
surender reddy

 
Hi Every one,

I need to disable keyboard functionalites in salesforce lightning how can we do that ? 
Like  key E functionaliy while clicking E it's opening Edit details.. 
 If any one know please  help me .
 
Thanks
Surender reddy
Hi Everyone,

When i am writting Pd1 maintance exam i got error 


When executed, the BatchLeadConvertTest test class has test failures. All tests should pass.

Thank you
Hi Every one,

i am new to lightning i am learning know

i wrote apex class-

public class Lightning_3 {
   
    @AuraEnabled
    public static List<contact> show(){
        List<contact> contacts=[select id,FirstName,LastName,phone from contact limit 5];
        return contacts;
    }
  }
and after i design my component
.<aura:component controller="Lightning_3" >
    <aura:attribute name="contacts" type="List"/>
    <aura:attribute name="columns" type="List"/>
    <aura:handler name="init" value="{!this}" action="{!c.callme}"/>
    <lightning:DataTable keyfield="id" data="{!v.contacts}" columns="{!v.columns}"/>
</aura:component>
and after my controller
({
    callme : function(component, event, helper) {
        
        component.set('v.columns',[
            
            {label: 'FirstName', fieldName: 'FirstName', type: 'text'},
            {label: 'LastName', fieldName: 'LastName', type: 'text'},
            {label: 'phone', fieldName: 'phone', type: 'text'},
            
        ]);
            var action=component.get("c.show");
            action.setCallback(this,function(response){
               var state=response.getState();
               if(state==='SUCCESS'){
              
                var result=response.getReturnValue();
                component.set("v.data",result);
              }
            });
            $A.enqueueAction(action);
          }
})

actuall my task is to show contact recorrds on data table using apex in lightning
when i running this program it snot showing any error but i am not getting out put it s showing blank page.
if you know any one help me.

Thank you
Surender reddy.

 
HI ,

How can i close popup when i click ESC button on Key boar in salesforce lightning .

Please provie me solution 

Thank you
Surender reddy
 
Hi,

i wrote this in appexclass
public class Trigger_Opportunity_Handler{
    public static void afUpdate(map<Id,Opportunity>  oldMap, map<Id,Opportunity>  newMap){
        set<id> optyids=oldMap.keyset();
        User u=[select id from User where alias='udemo'];
           list<OpportunityTeamMember> teams=new list<OpportunityTeamMember>(); 
        for(Id key:optyIds){
            Opportunity old=oldMap.get(key);
            Opportunity optyNew=newMap.get(key);
            if(old.StageName!='Closed Won'&&optyNew.StageName=='Closed Won'){
                OpportunityTeamMember ot=new OpportunityTeamMember();
                ot.opportunityId=key;
                ot.UserId=u.Id;
                ot.TeamMemberRole='Account Manager';
                ot.OpportunityAccessLevel='Edit';
                teams.add(ot);
                }
        }
        insert teams;
    }
}
Error-
Variable does not exist: StageName
Hi ,
i wrote program using combination of appex and visual force 

apexprogram-
public class Example_pr2 {
    public account acc {set;get;}
    public opportunity opty {set;get;}
    
    
    public Example_pr2(){
        acc= new account();
        opty =new opportunity();
    }

}
and visual force program 
<apex:page controller="Example_pr2">
    <apex:form>
    <apex:pageblock>
        <apex:pageBlockSection title="Account">
         <apex:inputField value="{!acc.name}"/>
         <apex:inputField value="{!acc.phone}"/>
         <apex:inputField value="{!acc.industry}"/>
          <apex:inputField value="{!acc.rating}"/>
          <apex:inputField value="{!acc.ownership}"/>
        
        </apex:pageBlockSection>
        <apex:pageBlockSection title="opportunity">
            <apex:inputField value="{!opty.name}"/>
            <apex:inputField value="{!opty.StageName}"/>
            <apex:inputField value="{!opty.closedate}"/>
            <apex:inputField value="{!opty.Amount}"/>
          </apex:pageBlockSection>
        </apex:pageblock>
    </apex:form>
 </apex:page>

but i am getting error in opportunity fields 
error message-
Could not resolve the entity from <apex:inputField> value binding '{!opty.name}'.  <apex:inputField> can only be used with SObjects, or objects that are Visualforce field component resolvable.


 
when i written the below  program using batch apex topic its getting error in line 1 and 6
global class Batch_Example implements Database.Batchable<sobject>{
    global Database.QueryLocator start(Database.BatchableContext bc){
        String query='Select id,name.stagename,CloseDate from opportunity Where Createddate=THIS_MONTH';
        return Database.getQueryLocator(query);
    }
    global void execute(Database.BatchableContext bc,List<opportunity> optList){
        for(opportunity op:optList)
        {
            op.StageName='closed Won';
            op.Closedate=system.today();
        }
        update optList;
    }
    global void finish(Database.BatchableContext bc){
        
    }

}

error message -1.Class Batch_Example must implement the method: void Database.Batchable<SObject>.execute(Database.BatchableContext, List<SObject>) 
2.global methods do not support parameter type of List<Opportunity>
i written this in appex class 
public class Soql_Example3 {
    public List<Account> accounts      {set;get;}
    public List<selectoption> options  {set;get;}
    
    public Soql_Example3(){
        accounts = [select id,Name,phone from account];
        options = new List<selectoption>();
        
       selectoption n = new selectoption('none','-None-');
        options.add(n);
        
        for(account a:accounts){
            selectoption op = new selectoption (a.Phone,a.name);
            options.add(op);
            
        }
        
        
        
        
        
        
    }
     
    

}

i written this in visual force
<apex:page controller="Soql_Example3" >
    <apex:form>
    <apex:selectList size="1">
        <apex:selectOptions value="{!options}"/>
        
        
        </apex:selectList>
    
    </apex:form>
</apex:page>

when i execute this program iots getting error message 
Error-
Argument 1 cannot be null 
An unexpected error has occurred. Your development organization has been notified.
<apex:page standardController="Loan" >
    <apex:sectionHeader title="Loan" subtitle="Loan details"/>
    <apex:form>
    <apex:pageBlock title="Loan Edit">
       <apex:pageBlockButtons location="top">
           <apex:commandButton value="Save"/>
           <apex:commandButton value="cancel"/>
           <apex:commandButton value="save&New"/>
        </apex:pageBlockButtons>
        <apex:pageBlockSection>
        <apex:inputField value="{!Loan__c.Loan_Type__c}" />
            <apex:inputField value="{!Loan__c.payment__c}"/>
            <apex:inputField value="{!Loan__c.Payment_date__c}"/>    
        </apex:pageBlockSection>
    </apex:pageBlock>
    </apex:form>
</apex:page>

When i run this program its showing error
errorMessage-Loan does not exisit
Hi Everyone,

My Scenario is create two fields
product category” as the first lookup(Product2) and then the “Product Name/Code” as the second lookup(Product2) into Child Object (Request__c).

Note:  here main problem is reffering same Parent Object(Product2) in Child Object

Here my client expecting first lookup user going to select perticuler Category 

Product Category 
Samsung
IPHONE
SONY

Samsung :(user Clicks First lookup values is Samsung in second lookup need to display some dependeny mentioned below )

Product  Name/code(Lookup)
S-3652
S-2564
S-1234

IPHONE:(user Clicks First lookup values is IPHONE in second lookup need to display some dependeny mentioned below )

Product name/code(Lookup)
I6
I7
I8

Sony:(user Clicks First lookup values is Sony in second lookup need to display some dependeny mentioned below )

Product Name/code(Lookup)
Sony-1234
Sony-5664
Sony-4568

I'm implemented same functionlity using picklist dependency its working fine but my client expecting above scenario. 

Can you please guide me how to achive this scenrion in Salesforce .


PFA

User-added image