function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
NNRNNR 

Hi friends i am not getting this query please

when i click on button in my vfpage this action is done but query is not getting to  show in my pageblocktable 


public void previous(){
        count++;
        system.debug('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@5555555555555555555555555555'+count);
        cnt+=count;
        system.debug('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'+cnt);
        myday=Date.today().addDays(-count);
        system.debug('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'+myday);
        showNextDay =true;
        date e=date.today();
        if(count!=null){
            contacts =[select id,First_Name__c,Mobile__c,LastName__c ,Patient_Id__c,Name,Country__c,Registration_Date__c,city__c,state__c,CreatedDate,status__c,opd_Reg_Date__c From OPD_Registration__c where  CreatedDate=LAST_N_DAYS:20 and status__c='open'];
        } 
       
       
     }
Satyendra RawatSatyendra Rawat
Hi,
 Assign the value  count =0; in constructore
If we are not assign any value by default is null.

Thanks
Satya