• Dvisha T
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 4
    Replies
Hi,

Thanks in advance for your help here.
I have a requirement where when i have list of accounts clicking on it it should display account,contacts and related opportunities in a single visual page of a particular account clicked.
Pls note it should not go to any detaul page.
 
Hi,

Am having similar error am new to visualforce and apex do correct my code thanks in advance.
Error: Unknown property 'myOpportunities' referenced in OppExt

public with sharing class OppExt {
     public List<Opportunity> myOpportunities { get; private set; }

     public OppExt(){
         myOpportunities = [ SELECT Id, Name, Account.Name,StageName,Amount,CloseDate
                 from Opportunity 
                 WHERE OwnerId = :UserInfo.getUserId()];

    }
}
<apex:page>
<apex:repeat value="{!myOpportunities}" var="opp" >
   <apex:outputlink value="/{!opp.Id}">{!opp.Name}</apex:outputlink><br/>
</apex:repeat>
</apex:page>
Hi,

Thanks in advance,
Am new to apex and visualforce,kindly helpme in the below requirement,
I need to create a custom button on account object and on clicking on it should lead to a visualforce page that contain some of the account and related oppurtunities of the account.kinldy help me out by providing a sample code.

 
Hi,

Thanks in advance for your help here.
I have a requirement where when i have list of accounts clicking on it it should display account,contacts and related opportunities in a single visual page of a particular account clicked.
Pls note it should not go to any detaul page.
 
Hi,

Thanks in advance for your help here.
I have a requirement where when i have list of accounts clicking on it it should display account,contacts and related opportunities in a single visual page of a particular account clicked.
Pls note it should not go to any detaul page.
 
Hi,

Am having similar error am new to visualforce and apex do correct my code thanks in advance.
Error: Unknown property 'myOpportunities' referenced in OppExt

public with sharing class OppExt {
     public List<Opportunity> myOpportunities { get; private set; }

     public OppExt(){
         myOpportunities = [ SELECT Id, Name, Account.Name,StageName,Amount,CloseDate
                 from Opportunity 
                 WHERE OwnerId = :UserInfo.getUserId()];

    }
}
<apex:page>
<apex:repeat value="{!myOpportunities}" var="opp" >
   <apex:outputlink value="/{!opp.Id}">{!opp.Name}</apex:outputlink><br/>
</apex:repeat>
</apex:page>
Hi,

Thanks in advance,
Am new to apex and visualforce,kindly helpme in the below requirement,
I need to create a custom button on account object and on clicking on it should lead to a visualforce page that contain some of the account and related oppurtunities of the account.kinldy help me out by providing a sample code.