Guest User

Untitled

a guest
Dec 12th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. public with sharing class SearchClass
  2. {
  3. public List<Contact> contacts { get; set; }
  4. public List<Application__c> apps { get; set; }
  5. public String name { get; set; }
  6. public String Status { get; set; }
  7. public String Skills { get; set; }
  8.  
  9. public SearchClass()
  10. {
  11. contacts = new List<Contact>();
  12. apps = new List<Application__c>();
  13. }
  14.  
  15. public PageReference searchContacts()
  16. {
  17. contacts = [select Id
  18. ,Name
  19. ,Status__c
  20. from Contact
  21. where Name = :name
  22. or Status__c = :Status
  23. apps = [select Id
  24. ,Skills__c
  25. from Application__c
  26. where Skills__c = :Skills
  27. return null;
  28. }
  29. }
  30.  
  31. <apex:page controller="Criteria__c" extensions="FindClass">
Add Comment
Please, Sign In to add comment