function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Somasundaram S 1Somasundaram S 1 

dasboard for user

I would like to open a dasboard based on user login ,i use below VF code and please suggets me how to implement the logic to open the dashboard based on user log-in
<apex:page >
<apex:pageBlock title="My Dashboard" mode="edit">
            <apex:pageBlockSection title="My Dashboard" columns="1" collapsible="false">
                               <apex:outputLink title="My Dashboard" value="{!URLFOR('/01Z9E0000000EWK')}">My Dashboard</apex:outputLink>
            </apex:pageBlockSection>
            </apex:pageBlock>
</apex:page>
Arvind KumarArvind Kumar
Hi Soman,

Please follow the below step, it would be very helpful for you.

To create a dashboard that uses this Visualforce page:

1.) View the dashboard and click Edit.
2.) Click Add Component from the top of any column.
3.) Choose a Visualforce Page as the component type.
4.) Optionally, enter a header to display at the top of the dashboard component.
5.) Optionally, enter a footer to display at the bottom of the dashboard component.
6.) From the Visualforce Page drop-down list, select your VF page.
7.) Click Save.


If you have any query, please write msg. I will solve your problem.

Thanks,
Arvind Kumar