• Yucel
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi, I have problems in save button overrides but i found the solution and post one.

this is an sample how to override the save button:

//Method to override
public PageReference save()
{
//Logical actions

//Action
update detalles;

//Redirect to same page
PageReference acctPage = new PageReference('/'+ApexPages.currentPage().getParameters().get('idcap'));
acctPage.setRedirect(true);
return acctPage;
}
Message Edited by Yucel on 04-15-2009 04:11 PM
  • April 15, 2009
  • Like
  • 0