Tuesday, 7 August 2012

How to give the Pagereference for the Save & New ?

Question:
When I am clicking Save & New the record is inserting and giving the same page but the problem is it is giving the same values which has been entered on the before page.

Solution:

PageReference pr=Page.MyPage;
pr.setRedirect(true);

return pr;
   

No comments:

Post a Comment

Labels