I would recommend following code for a Visualforce page. I have simply used a standard controller and some of the OOB visualforce tags to do the job. Here we go:
Here is how it would look like once you override standard page with a visualforce page. Or you can passin an Id inside the parameter. E.g., goto any account record and copy the ID from URL now goto your Visualforce page and pass the parameter by typing ?Id=056465305fdfddf at the end of an URL.
Below is what your output would look like,
Now, once you click on Contact tab it will show all contacts related to that account and same thing goes for Opportunities and Cases,
Adi, if this solves the puzzle then please mark this answer as a best answer!
I would recommend following code for a Visualforce page. I have simply used a standard controller and some of the OOB visualforce tags to do the job. Here we go:
Here is how it would look like once you override standard page with a visualforce page. Or you can passin an Id inside the parameter. E.g., goto any account record and copy the ID from URL now goto your Visualforce page and pass the parameter by typing ?Id=056465305fdfddf at the end of an URL.
Below is what your output would look like,
Now, once you click on Contact tab it will show all contacts related to that account and same thing goes for Opportunities and Cases,
Adi, if this solves the puzzle then please mark this answer as a best answer!