• Phanindra
  • NEWBIE
  • 0 Points
  • Member since 2016
  • Salesforce Platform Developer
  • IHSMArkit

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
public class SecondExtension{
public Admin__c adminRecord;
public SecondExtension(ApexPages.StandardController stdCon){
adminRecord=(Admin__c)stdCon.getRecord();
}
public PageReference save(){ 

insert adminRecord;

PageReference pg=new PageReference('apex/PageConfirmation');

pg.sendRedirect(true);
}

public PageReference cancel(){

PageReference pg=new PageReference('/a09/o');
pg.sendRedirect(true);
}
}
 
public class SecondExtension{
public Admin__c adminRecord;
public SecondExtension(ApexPages.StandardController stdCon){
adminRecord=(Admin__c)stdCon.getRecord();
}
public PageReference save(){ 

insert adminRecord;

PageReference pg=new PageReference('apex/PageConfirmation');

pg.sendRedirect(true);
}

public PageReference cancel(){

PageReference pg=new PageReference('/a09/o');
pg.sendRedirect(true);
}
}