4 Antworten
Hi Pooja, User below code for save and New button :
public PageReference doFullSave1(){
doFullSave();
String str = ApexPages.currentPage().getUrl().subStringAfter('/').substringBefore('?');
return new PageReference('/apex/' + str).setRedirect(true);
}
Note : This code first save your current record and after that redirect it to the same page after saving changes.
If this post solves your problem kindly mark it as solution.Thanks.