Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. List<Dev_Request__c> lstDevRequests;
  2. public String selectedStatus{get;set;}
  3.  
  4.  
  5. public tableDevRequests() {
  6.  
  7. }
  8.  
  9.  
  10. public List<SelectOption> getStatus() {
  11. List<SelectOption> statOptions= new List<SelectOption>();
  12. statOptions.add( new SelectOption('','--All Status--'));
  13. for( Dev_Request__c dev : [select Id,Status__c from Dev_Request__c ] ) {
  14. statOptions.add( new SelectOption(dev.Id,dev.Status__c)); /*SelectOption list takes two parameters one is value and other one is label .In this case account name as a label and Id is the value .*/
  15. }
  16. return statOptions;
  17. }
  18.  
  19.  
  20.  
  21. public List<Dev_Request__c> getlstDevRequests() {
  22. if(lstDevRequests == null)
  23. lstDevRequests = [Select Id, Name, Assignee__c, Assignee__r.Name, Start_Date__c, Due_Date_QA__c, Estimated_Hours__c, Estimated_Completion_Date__c, Status__c, Overview__c, Parent_Dev_Request__c, (SELECT Id, WhatId, ActivityDAte, Owner.Name, Description, Status, Subject from Tasks) from Dev_Request__c];
  24. return lstDevRequests;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement