• Deepak Kumar Reddy Regatte
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
May be because I havent worked on Communities yet, I dont understand where these roles getting used ? What is thier purpose ?

Any pointers/links/help with which I could start ?
public with sharing class Condosearchcontroller { 
   public Condosearchcontroller() {

    }

    public list <Condo__c> Cond {get;set;}  
    public string beds {get;set;} 
    public string baths {get;set;}
    public string squarefootage {get;set;} 
    public Condosearchcontroller(ApexPages.StandardController controller) {  
   }  
   
   public void Search(){
   
   
   string searchquery= 'select name,Beds__c,Baths__c,Square_Footage__c,Initial_List_Price__c from Condo__c where name!=NULL';
         if (!beds.equals(''))
              searchquery+= ' and Beds__c = '+beds+'';
         if (!baths.equals(''))
              searchquery+=  ' and Baths__c = '+baths+'';
         if (!squarefootage.equals(''))
      searchquery+=  ' and Square_Footage__c = '+squarefootage+'';
      
      Cond= Database.query(searchquery);
      //return Cond;
    }