You need to sign in to do that
Don't have an account?
Jagadees
To add a Open Activity (standard related list) to a Lead VF page
Hello Friends,
I've created a visualforce page for Lead which displays basic details of the lead/prospect from where the users/ sales person can work on.
Controller class: Leadview.cls
VF page: Leadview.page
In this VF page I need to add the "Open Activities" related list (that is there in the standard page of Lead) with only "New Task" button added to it. When the user clicks this "New task" button, the functionality to create a Task should work as standard.
Can anyone guide me to achieve this, please?
I've created a visualforce page for Lead which displays basic details of the lead/prospect from where the users/ sales person can work on.
Controller class: Leadview.cls
VF page: Leadview.page
In this VF page I need to add the "Open Activities" related list (that is there in the standard page of Lead) with only "New Task" button added to it. When the user clicks this "New task" button, the functionality to create a Task should work as standard.
Can anyone guide me to achieve this, please?
You can easily achieve it -
1) Pass the lead id in the URL as indicated in the URL.
2) Use Apex related list - See the below pic -
Hope, this will help you.
Thanks,
Sumit Kumar Singh
To get standard related list in Lead VF page,
In the VF page, add the following tag,
<apex:relatedList list="Activity " />
Hope it works. If you have any query, you can contact me.
Regards,
Roshni