Wednesday, April 1, 2009

Showing default dashboard

We had two roles for the users of application - "Manager" and "Reportee". We needed to land them at different dashboards - "Manager" and "My Allocation" dashboard. To achieve this we used the variable PORTALPATH.

In the Initblock we set the variable PORTALPATH with a query like
Select '\shared\pfm\_portal\Manager’ from TABLE_ROLE where role = 'Manager'
Union
Select '\shared\pfm\_portal\My Allocation' from TABLE_ROLE where role = 'Reportee'

When a user logs in based on the role the default dashboard will be shown.

This PORTALPATH setting will not work if the user goes to My Account and sets the Default Dashboard. In such cases the value the user sets overrides the PORTALPATH value.

No comments:

Post a Comment