You need to sign in to do that
Don't have an account?
ITENG.SUMAN
can anyone help me figure out what is wrong with my save and new button. The functionality is not working properly, it is not saving, just going to a new page
save function not working
public class lop { public lop(ApexPages.StandardController controller) { } public PageReference save() { return null; } public PageReference saveAndNew() { PageReference new2= new PageReference('/apex/new2'); new2.setRedirect(true); return new2; } }
can anyone help me figure out what is wrong with my save and new button. The functionality is not working properly, it is not saving, just going to a new page
All Answers
02
03 public lop(ApexPages.StandardController controller) {
04
05 }
06 public PageReference save() {
07 return null;
08 }
09
10 public PageReference saveAndNew() {
11 controller.save();
12 PageReference new2= new PageReference('/apex/new2');
13 new2.setRedirect(true);
14 return new2;
15 }
16 }
Still I got error in controoler.save(); method, Like it is shoeing compiler error:Variable does not exist: controller at line 11 column 1