+ Start a Discussion
Deepak agarwal 9Deepak agarwal 9 

Create view on accounts

A list view that shows accounts with related opportunities.
Nitish Kumar 59Nitish Kumar 59
I dont think you can create a list view which shows accounts with related opportunities. However you can achieve the same using reports
You have two options
1. Use Visualforce page to create a list view on Account to display related opportunities.
2. Use report the group opportunities by account 
Deepak agarwal 9Deepak agarwal 9
Thanks Nitish and Rakesh
Actually iam trying now through vf.can u help me>
Amit Chaudhary 8Amit Chaudhary 8
Please try below code
<apex:page standardController="Account" recordSetVar="accounts" tabstyle="account" sidebar="false">
    <apex:pageBlock >
        <apex:repeat value="{!accounts}" var="a">
           <apex:pageBlockSection title="{!a.name}"></apex:pageBlockSection>
           <apex:relatedList list="Opportunities" subject="{!a.Id}" />