+ Start a Discussion
sridharbarlasridharbarla 

How to create a report with using visual force page

Hai

i am new to visual force page

 

i want to dispaly oppottunity data  in two data grids

 

like

 

third party opportunity

select  Name ,amount from opportunity where opprecordtypeID = XXXXXXXXXXXXX; 

 

Internal opportunity .

 

select  Name ,amount from opportunity where opprecordtypeID = yyyyyyyyyyyyyy; 

 

 

 

so what i did is i created a apex class like

 

 

public class GetOpportunityDetails

{
   
List<Opportunity> oppThirdPartyList;

List<Opportunity> oppInterList;


public List<Opportunity> getThirdpartyOpportunity() 
{
    if(oppThirdPartyList== null)
    { 
       oppThirdPartyList= [select name,amount from Opportunity where RecordTypeID=XXXXXXXXX];
     }
    return oppThirdPartyList;
 }

 

 

public List<Opportunity> getInternalOpportunity() 
{
    if(oppInterList== null)
    { 
       oppInterList= [select name,amount from Opportunity where RecordTypeID=yyyyyyyyyyy];
     }
    return oppInterList;
 }

}

 

how to display this two record type data in diffrent grid with using visual force page.

 

please help me

Anand@SAASAnand@SAAS
Look at visual force the standard component reference here. Specifically look for <apex:pageBlockTable> or <apex:dataTable>.