Dynamic/Conditional Breadcrumbs
510477May 12 2010 — edited Jun 23 2010I am trying to reorganize the navigation in my application to be based on user roles rather than functional areas. There are Tabs set for each functional area I am using now, and I have created new tabs for the user roles. Some of the reports may be accessed by users having different roles, and I would like the breadcrumb to reflect their default Home page, rather than be static. The problem is that it doesn't appear that I can create multiple breadcrumb entries that apply to the same page at all.
I tried going through Dimitri's blog
http://dgielis.blogspot.com/2008/03/dynamic-breadcrumb-in-apex.html
for creating dynamic breadcrumbs, but the result I get is that the breadcrumb is always missing the child entry.
Has someone been successful in using conditional or dynamic breadcrumbs and can help me out? I created two application items that hold the page number and page name of the user's default home page that should be the root for all the breadcrumbs and I can reference these. My challenge is that I can't get any of the child references to appear.
The breadcrumb on the child page is set up as follows:
Parent Entry: - Select Parent -
Short Name: &AI_PARENT_PAGE_NAME.
Target Page: &AI_PARENT_PAGE.
AI_PARENT_PAGE_NAME and AI_PARENT_PAGE are application items that are set BEFORE HEADER (IF NULL) using a lookup from the APEX_ACCESS_CONTROL table (to get their username/id).