+ Start a Discussion
Siarhei balantsevichSiarhei balantsevich 

how to overwrite a method ApexPages.StandardSetController throught ApexPages.StandardSetController which has apex:actionSupport

i dont'know how to rewrite this  
public ApexPages.StandardSetController setCon {
        get {
            if(setCon == null) {                
                setCon = new ApexPages.StandardSetController(Database.getQueryLocator(
                      [select ID,NAme,Doctor__r.Name,patient__r.Name,Duration_in_minutes__c	,Appointment_Data__c	FROM Appointment__c where Doctor__r.ID =: selectedDoctor  ]));
                setCon.setPageSize(size);  
                noOfRecords = setCon.getResultSize();
            }            
            return setCon;
        }
        set;
    }

 
Siarhei balantsevichSiarhei balantsevich
i mean throught this list  
<apex:selectList size="1" multiselect="false" value="{!selectedDoctor}"  >
    <apex:actionSupport event="onchange" action="{!renderdiffview}" rerender="pbId1"/>
<apex:selectOptions value="{!doctorSelectOptionList}"/>
</apex:selectList>
</apex:pageBlockSection>
SwethaSwetha (Salesforce Developers) 
HI Siarhei,
Recommend reviewing https://salesforce.stackexchange.com/questions/154201/can-a-single-vf-page-override-both-a-standard-action-and-a-list-action

If this information helps, please mark the answer as best. Thank you