Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Dev_Request__c> lstDevRequests;
- public String selectedStatus{get;set;}
- public tableDevRequests() {
- }
- public List<SelectOption> getStatus() {
- List<SelectOption> statOptions= new List<SelectOption>();
- statOptions.add( new SelectOption('','--All Status--'));
- for( Dev_Request__c dev : [select Id,Status__c from Dev_Request__c ] ) {
- 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 .*/
- }
- return statOptions;
- }
- public List<Dev_Request__c> getlstDevRequests() {
- if(lstDevRequests == null)
- 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];
- return lstDevRequests;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement