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
sambasiva rao paupuletisambasiva rao paupuleti 

hasNext and .getHasNext(); difference

HI to all,

 public Boolean hasNext
        {
        get
                { 
            return myaccts.getHasNext();
        }
        set;
    }
        public void next()
        {               
         myaccts.next();
        acctlist=myaccts.getrecords();       
    }

Here i'm not able to understanding difference between hasnext and gethasnext()..
Please explain and help me ..
Thanks and Regards,
Samba shiva rao..
Vivek DeshmaneVivek Deshmane
Hi,
   //hasNext :is instance variable of page controller, will bind to your vf page and will be used for pagination while navigatig through list records
   
 //getHasNext():indicates whether there are more records after the current page set and this is StandardSetcontroller method.
 
  public Boolean hasNext {
        get {
         // indicates whether there are more records after the current page set and this is StandardSetcontroller method.
          
            return con.getHasNext();
        }
        set;
    }
    
    
    http://blog.jeffdouglas.com/2009/07/14/visualforce-page-with-pagination/
    https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/apex_ApexPages_StandardSetController_methods.htm
    
    Please let me know if it helps you.
    
    Best Regards,
    -Vivek