• nagamalli tadikonda
  • NEWBIE
  • 40 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 17
    Questions
  • 7
    Replies
 explain service life cycle in sales force ?
what are the errors you faced in apex ?
what are the errors you faced in triggers
Hi..
I need to make inactive all the  triggers in my org  using coding only.. Anybody have any idea?
how to write one object for one trigger using handler class ? 
3objects like object1,object2& object 3 having relationship like object 1 &2 are lookup relatin and object 2& 3 have mastr relation write single query to get the asociated data
what is difference between standardcontroller, standardsetcontroller, customcontroller, extension ?
by dataloader how to change record one language  to another language?
U1,u2,u3 different roles and heirarchies only u3 under u4 how can we see u4 records particular u1
i want to access 1 million records but soql  returns you only 50k records then how do v achieve it  without  using batch apex?
how to avoid deadlock between a trigger and process builder. for example: there is a field update using trigger after the record is modified, simultaneously there is a process builder on the same field  which fires when the field modified to make it to original. so in simple terms thetre is a dead lock. how to avoid this ?

i had already tried with uisng apex class and delayed operation in process builder but need any alternate solutions....
what are the error or exception faced while implementing project
Can we convert custom object record into account,contact and opportunity????
why we need to maintain 75% code coverage ?
what is difference  before and after triggers ? when we write after and before triggers ?
This is my vf page:-
<apex:page standardController="Account" extensions="StandardController1">
<apex:form >
<apex:pageBlock title="Account">
<apex:pageBlockTable value="{!accs}" var="a">
<apex:column value="{!a.name}"/>
<apex:column value="{!a.industry}"/>
</apex:pageBlockTable>
<apex:pageBlockButtons location="top">
<apex:commandButton value="submit" action="{!submit}"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
 This is my apex:-
public class StandardController1 {
public List<Account> accs {set;get;}
Account acc {set;get;}
public StandardController1(ApexPages.StandardController controller){
String[] fields = new String[]{'name','industry'};
    accs = new List<Account>();
controller.addFields(fields);
acc = (Account)controller.getRecord();
accs.add(acc);
}
public PageReference submit(){
Database.delete(accs,false);
PageReference p = new PageReference('/001/o');
return p;
}
}

i am getting this error:--- Missing id at index: 0
Error is in expression '{!submit}' in component <apex:commandButton> in page standardcontroller1: Class.StandardController1.submit: line 12, column 1
An unexpected error has occurred. Your development organization has been notified.
This is my vf page:-
<apex:page standardController="Account" extensions="StandardController1">
<apex:form >
<apex:pageBlock title="Account">
<apex:pageBlockTable value="{!accs}" var="a">
<apex:column value="{!a.name}"/>
<apex:column value="{!a.industry}"/>
</apex:pageBlockTable>
<apex:pageBlockButtons location="top">
<apex:commandButton value="submit" action="{!submit}"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
 This is my apex:-
public class StandardController1 {
public List<Account> accs {set;get;}
Account acc {set;get;}
public StandardController1(ApexPages.StandardController controller){
String[] fields = new String[]{'name','industry'};
    accs = new List<Account>();
controller.addFields(fields);
acc = (Account)controller.getRecord();
accs.add(acc);
}
public PageReference submit(){
Database.delete(accs,false);
PageReference p = new PageReference('/001/o');
return p;
}
}

i am getting this error:--- Missing id at index: 0
Error is in expression '{!submit}' in component <apex:commandButton> in page standardcontroller1: Class.StandardController1.submit: line 12, column 1
An unexpected error has occurred. Your development organization has been notified.
Hi,

I have  a custom object like objectA(like lead) i need to conver lead account and contact using button ..how it is possible
Hi,
I am not able to understand the below question correctly Please help me out. - 
Create a class that has a method accepting two strings. The method searches for contacts that have a last name matching the first string and a mailing postal code (API name: MailingPostalCode) matching the second. It gets the ID and Name of those contacts and returns them.The Apex class must be called 'ContactSearch' and be in the public scope.
The Apex class must have a public static method called 'searchForContacts'.
The 'searchForContacts' method must accept two incoming strings as parameters, find any contact that has a last name matching the first, and mailing postal code matching the second string. The method should return a list of Contact records with at least the ID and Name fields.
The return type for 'searchForContacts' must be 'List<Contact>'.
Class:
   
 public class ListExample3 {
    public string name{set;get;}
    public string industry{set;get;}
    public string phone{set;get;}
    public ListExample3(){
        List<Account>accs=new List<Account>();
        Account a1=new Account();
        a1.name='Wipro';
        a1.industry='Information Technology';
        a1.phone='123';
        accs.add(a1);
        Account a2=new Account();
        a2.name='TCS';
        a2.industry='Banking';
        a2.phone='123';
        accs.add(a2);
    }

}

VF page:
 
<apex:page controller="ListExample3">
    <apex:form>
    <apex:pageBlock title="Account">
        <apex:pageBlockTable value="{!accs}" var="a">
            <apex:column value="{!a.name}"/>
            <apex:column value="{!a.industry}"/>
            <apex:column value="{!a.phone}"/>
        </apex:pageBlockTable>
        </apex:pageBlock>
    </apex:form>
</apex:page>