Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <apex:pageBlockSectionItem >
  2. <apex:outputText >Match Filter</apex:outputText>
  3. <apex:selectList value="{!crit.reportingMatch}" size="1">
  4. <apex:selectOptions value="{!crit.reportingMatchPicklist}"/>
  5. </apex:selectList>
  6. </apex:pageBlockSectionItem>
  7.  
  8. public with sharing class massOppController {
  9.  
  10. public massOppCriteria Crit{get; set;}
  11.  
  12. // Assigning filterRec.Match_Filter__c value(either 0 or 1) to crit.reportingMatch
  13. crit.reportingMatch = String.valueOf(filterRec.Match_Filter__c);
  14.  
  15. public String reportingMatch {get;set;}
  16.  
  17. public static LIST<SelectOption> getReportingMatchPickList() {
  18. List<SelectOption> reportingMatchPickList = new List<SelectOption>();
  19. reportingMatchPickList.add(new selectoption('', '- Reporting Match Filter -'));
  20. reportingMatchPickList.add(new selectoption('0', '0'));
  21. reportingMatchPickList.add(new selectoption('1', '1'));
  22. return reportingMatchPickList;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement