2013/01/19

OBIEE 11g - Redirect Home Page to Custom Page

OBIEE 11g - Redirecting default Home Page to Custom Page

At Client Co., we are upgrading OBIEE 10g to 11g.  One of the requirements is to display a custom Dashboard in place of default Home Page after login.

The solution to use "PORTALPATH" variable through the initialization block did work only if the login URL is a Non-SSL. For SSL this solution did not work due to SSO implementation.  We are not looking to add a custom Link in addition to the "Home" link, what we have done is to replace a piece of code for Home link with our custom dashboard link.

The solution that worked for me with SSO/SSL URL is to amend the "header.js" file.  The following procedure is followed to accomplish this -

  • This requires changes to "header.js" file, so take a backup prior to modifying this file.
  • In the "header.js" file, look for - saw.header.Navbar.prototype.onHome=function(
  • Amend the file with the below changes
   
saw.header.NavBar.prototype.onHome=function(b,a){
/* To display custom Dashboard Page - Mahesh - START – comment the below line */
/*saw.header.openURL(saw.commandToURL("bieehome"),a) */

/*Add  the below line – replacing the dashboard link to suit your needs */
window.location.href="saw.dll?Dashboard&portalPath="custom page link"

/* END */
};

  • Bounce OBIEE.
  • This change should display the custom page when the users login and also when they click on the "Home" link.

4 comments:

  1. Hi...

    I have implemented the default dashboard for each user.. it works perfect.. but when the user logs in it defaults to the first page od the dashboard. If i have to default it to second page or third page of the dashboard , what do i do?

    Please suggest...

    ReplyDelete
  2. How did you implement the default dashboard for users? If it is through PORTALPATH session variable, please share your portal path value how you assigned to the variable.

    ReplyDelete
    Replies
    1. Hi Kanthi,

      As it says in the blog, I amended the header.js file and place the link to the custom page where we wanted the users to land after they login.


      saw.header.NavBar.prototype.onHome=function(b,a){
      /* To display custom Dashboard Page - Mahesh - START – comment the below line */
      /*saw.header.openURL(saw.commandToURL("bieehome"),a) */
      /*Add the below line – replacing the dashboard link to suit your needs */

      window.location.href="saw.dll?Dashboard&portalPath=""

      /* END */

      };

      Delete
  3. This comment has been removed by a blog administrator.

    ReplyDelete

File Handling with Python

This little utility is for copying files from source to target directories.  On the way it checks whether a directory exists in the target, ...