Apex Page Navigation
We have multiple ways of navigation to get to the same page. Lets say Page 5 which is a viewable page and can navigate to other pages that could potentially navigate back to the same Page 5 with different information on it... All of our pages that allow for entry have Cancel which proceeds to the previous page set in a P#_PAGEGO Field by the page it came from and a branch that returns to P#_PAGEGO after page has been submitted. The problem is that we can get into a cyclic pattern with setting P#_PAGEGO since P#_PAGEGO only stores one value and if the same page (IE Page 5) is gotten to by different previous pages(like in the first Sample Path where Page 5 first was from Page 4 and later Page 3), going back we simply cycle between page 3 and Page 5 at the end AND we want the user to to be able to One-Click back to either Page 6 or Page 7 (user probably will need to use this one a lot)
Here are some sample Paths
Page 1 (Home) -> Page 2(Interactive Report) -> Page 3 (Entry) -> Page 4 (Entry) -> Page 5(View only) ->Page 3 (Entry[Different Information)) ->*Page 5 (View Only)* [NOTE: P5_PAGEGO only has Page 3, Page 3 only has Page 5]
Page 1 (Home) -> Page 6 (Dashboard) -> Page 5 (View Only) ->....[You can get back to page 5 again]
Page 1 (Home) -> Page 7 (HTML Page with information sorted for the user) -> Page 5(View Only) ->
Page 1 (Home) -> Page 7 (HTML Page with information sorted for the user) -> Page 3(Entry) ->...[You can get back to page 5]
Page 1 (Home) -> Page 7 (HTML Page with information sorted for the user) -> Page 4(Entry) ->...[You can get back to page 5]
Our BreadCrumbs Path Page 1 (Home) -> Page 2(Interactive Report) -> Page 3 (Entry) -> Page 4 (Entry) -> Page 5(View only) which is missing Page 6 and Page 7 since it is one Breadcrumb Path
We thought of several solutions but not sure if any are workable..
1) Page 5 Have a Javascript Button with onclick="javascript:History.back()"; -> This will help alleviate the problem but we were told never to use the back button on the browser in Apex.
2) Have a second set of Breadcrumbs on the Page (Just Page 5).. -> Not as ideal but the breadcrumbs could allow the user to one click to the pages not on our initial BreadCrumb List. Original Breadcrumb is on Page 0 and we don't know how to add a new set of Breadcrumbs just to Page 5.
3) Dynamically change Breadcrumbs? -> Might be a lot of work, probably not really worth the effort and problem solving, not sure if it could easily be done in Apex.
Any suggestions or comments about the possible solutions...