You need to sign in to do that
Don't have an account?
sambasiva 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..
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..
//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