public class VFPageOppStageNameQualifyCon {
Public List<Opportunity> oppList{get;set;}
public List<Opportunity> getoppQualifyList(){
oppList = new List<Opportunity>();
oppList = [SELECT Name,StageName,(SELECT ContactId,Contact.Name from OpportunityContactRoles) FROM Opportunity where StageName = 'Qualification'];
return oppList;
}
public List<Opportunity> getoppProspectingList(){
oppList = new List<Opportunity>();
oppList = [SELECT Name,StageName,(SELECT ContactId,Contact.Name from OpportunityContactRoles) FROM Opportunity where StageName = 'Prospecting'];
return oppList;
}
public List<Opportunity> getoppNeedsAnalysisList(){
oppList = new List<Opportunity>();
oppList = [SELECT Name,StageName,(SELECT ContactId,Contact.Name from OpportunityContactRoles) FROM Opportunity where StageName = 'Needs Analysis'];
return oppList;
}
}
Repeat the Same steps Like i have add in vf and controller.Just what you have to do is change the "methodName" and "stageName" value in soql query of Controller and add pageblocksection for each method.
public class VFPageOppStageNameQualifyCon {
Public List<Opportunity> oppList{get;set;}
public List<Opportunity> getoppQualifyList(){
oppList = new List<Opportunity>();
oppList = [SELECT Name,StageName,(SELECT ContactId,Contact.Name from OpportunityContactRoles) FROM Opportunity where StageName = 'Qualification'];
return oppList;
}
}
public class VFPageOppStageNameQualifyCon {
Public List<Opportunity> oppList{get;set;}
public List<Opportunity> getoppQualifyList(){
oppList = new List<Opportunity>();
oppList = [SELECT Name,StageName,(SELECT ContactId,Contact.Name from OpportunityContactRoles) FROM Opportunity where StageName = 'Qualification'];
return oppList;
}
public List<Opportunity> getoppProspectingList(){
oppList = new List<Opportunity>();
oppList = [SELECT Name,StageName,(SELECT ContactId,Contact.Name from OpportunityContactRoles) FROM Opportunity where StageName = 'Prospecting'];
return oppList;
}
public List<Opportunity> getoppNeedsAnalysisList(){
oppList = new List<Opportunity>();
oppList = [SELECT Name,StageName,(SELECT ContactId,Contact.Name from OpportunityContactRoles) FROM Opportunity where StageName = 'Needs Analysis'];
return oppList;
}
}
Repeat the Same steps Like i have add in vf and controller.Just what you have to do is change the "methodName" and "stageName" value in soql query of Controller and add pageblocksection for each method.
for example qualification table needsAnalysis table one by one table will dispaly in one vf page it is possible by using one page block table and one soql query
Controller Repeat the Same steps Like i have add in vf and controller.Just what you have to do is change the "methodName" and "stageName" value in soql query of Controller and add pageblocksection for each method.
Let me Known if we have any queries.
All Answers
Check it may be can helps
Try the below code .Let me Known it helped or not?
Visualforce Page
Apex class Controller
Please Let me Known.
prosoecting table next qualifiction table (ext.......) all stages will display how to write
Controller Repeat the Same steps Like i have add in vf and controller.Just what you have to do is change the "methodName" and "stageName" value in soql query of Controller and add pageblocksection for each method.
Let me Known if we have any queries.
Visualforce Page
Controller
Regards,
Brahmaiah.
qualification table
needsAnalysis table
one by one table will dispaly in one vf page
it is possible by using one page block table and one soql query