I like to include “Cancel” buttons on data-entry web pages. These are similar to Mats’ “Back” buttons, but I can put ‘em where I want them and leave them out where they aren’t needed.
I especially like them on pages where a record is automatically created on entry. For these pages, the Cancel button fires a Rule to delete the empty record (context record for the page) before returning to the previous page.
This is easy and works well where the “return-to” page has no base object.
My problem is that I want to return to a page that does have a base object that has a parent-child relationship to the record I want to delete. Deleting the child record is simple, but when I do, I lose the relationship to the parent. When I return to it there is no context record and the page is blank.
So, any advice on a way to do this that will work and let me return to the parent page with its context record intact?