Topic Text   Topic Comments (3)   Topic Properties   Topic Information aherjyoti619@gma...
Topic title: CodeFile Tuesday September 20, 2016 10:48:33

Download topic text | View in monospace font | Tab width set to 8 (change to 4)

Files in topic:  
[Jump to] CodeFile.txt   {+51,-0}

[Add General Comment] to topic.

File CodeFile.txt (Revision 1.0) [Add File Comment] [Top]
 
1 /*
2
3 *
4 * Version Author Date(dd/mm/yyyy) Description
5 * 1.0 Jyoti Aher 07/02/2015 Display Campaign Member records through VF Page
6
7 */
8 public with sharing class CampMemberController
9 {
10 //public List<CampaignMember> campMembersList{get;set;}
11 public string status{get;set;}
12 public List<selectOption> selectStatus{get;set;}
13 public List<Campaign> campList{get;set;}
14 public List<CampaignMember> campMembListByStatus{get;set;}
15 public String campId=ApexPages.currentPage().getParameters().get('campId');
16
17 public CampMemberController(){
18 selectStatus=new List<selectOption>();
19 selectStatus.add(new selectOption('--None--','--None--'));
20 selectStatus.add(new selectOption('Present','Present'));
21 selectStatus.add(new selectOption('Absent','Absent'));
22 }
23
24 /*public Pagereference getMembers()
25 {
26 PageReference pageRef = Page.CampaignAttendancePage;
27 pageRef.getParameters().put('campaignId','campaignId');
28 return PageRef;
29 }*/
30 public void getMembersByStatus()
31 {
32 if(status=='--None--')
33 {
34 campMembListByStatus=[SELECT Id,CampaignId,Name,Contact.Name,Contact.Phone,Contact.Email,Attendance_Status__c FROM CampaignMember WHERE CampaignId=:campId];
35 }
36 else
37 {
38 campMembListByStatus=[SELECT Id,CampaignId,Name,Contact.Name,Contact.Phone,Contact.Email,Attendance_Status__c FROM CampaignMember WHERE CampaignId=:campId AND Attendance_Status__c=:status];
39 }
40 }
41 public void getcampMembersList()
42 {
43 //campMembersList=[SELECT Id,CampaignId,Name,Contact.Name,Contact.Phone,Contact.Email,Attendance_Status__c FROM CampaignMember WHERE CampaignId=:campId];
44 campList=[SELECT Id,Name,Type,NumberOfCampMembers__c FROM Campaign WHERE Id=:campId];
45 }
46 /*public void getcampList()
47 {
48 campList=[SELECT Id,Name,Type,NumberOfCampMembers__c FROM Campaign WHERE Id=:campId];
49 //return campList;
50 }*/
51 }
 
  
Legend:
Removed 
Changed
 Added

[Add General Comment] to topic.