function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
YucelYucel 

How override a save button in extension visual force

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
marcusaureliusmarcusaurelius
this is good...do you, by chance, have the test method as well?