Guest User

Untitled

a guest
Jan 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. New = Request Done
  2. Progress=Approved;Not Approved
  3. Pending=Pending for User;Pending for Brand
  4. Closed=Cancelled;Completed
  5.  
  6. <apex:outputpanel layout="block">
  7. <apex:selectList label="Sub-Status" value="{!currentCase.SubStatus__c}" multiselect="false" size="1" required="false">
  8. <apex:selectOptions value="{!subStatusOptions}"/>
  9. </apex:selectList>
  10. </apex:outputPanel>
  11.  
  12. public void caseSubStatusOptions(){
  13. if(currentCase.Category__c != null && currentCase.SubCategory__c != null){
  14. if(statusSubstatusMap.containsKey(currentCase.Status)){
  15. String subStatusStr = statusSubstatusMap.get(currentCase.Status);
  16. List<String> subStatusList = subStatusStr.split(';');
  17. subStatusOptions = new List<SelectOption>();
  18.  
  19. for(String s : subStatusList){
  20. subStatusOptions.add(new SelectOption(s,s));
  21. }
  22. }
  23. }
  24. }
Add Comment
Please, Sign In to add comment