You need to sign in to do that
Don't have an account?
Rahul Gupta 137
VF page via button
I want to create a custom button on the detail page of account that shows no of contacts and opportunity for that account.Custom button should invoke a VF page that has above details
This is possible, please follow below steps:
- Create a visual-force and controller.
- Controller will accept one parameter as Account Id.
- Query on Contact and Opportunity with the Account Id and put the records in wrapper / List / Map.
- Use Apex page block table / Data table to display the data on vf page.
After VF page.use the above parameter (accId) in controller side.
Hope this helps. If you still have doubt please ask.
Thanks,
Gaurav
Skype: gaurav62990
Rahul,
I am here to guide how to resolve an issue, but could not provide the detailed code for this, if you any insight of how can we implement this other than above information, you can contact me directly on skype: gaurav62990
Thanks,
Gaurav