You need to sign in to do that
Don't have an account?
avimeir
redirect after save
Hi all,
I have a custom object that associates two other objects (room and reservation).
When clicking on the Reservation detail page on New association, and then saving the association I find myself on the association page, but I want the user to be redirected back to the reservation detail page where he started.
Any idea on how to do this?
Thanks
PageReference p = Page.you initial page;
p.setRedirect(true);
return p;
Hi
Look at below link
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_pages_pagereference.htm