Dynamic breadcrumbs in APEX
Recently I had to implement a sort of dynamic breadcrumbs for one of our client. As usual there were two master tables while there was only one detail page.
The idea that I came up with is:
1. Add this into your detail page header:
<script>
$(function()
{
// Document
is ready
var nLink =
'<a
href="f?p=118:&A2_PARENT_PAGE.:&SESSION.::NO:::">&A2_PARENT_PAGE_NAME.</a>';
//ADD
breadcrumb text
$(
"div.uBreadcrumbs ul li a").html(nLink);
});
</script>
2. Create two application level parameters: PAR_PAGE_NAME & PAR_PAGE_ID
3. Master pages need to submit these two values
This should do the trick.
No comments:
Post a Comment