You need to sign in to do that
Don't have an account?
sfdc fresher
what is the "value: in page block table in below code,,, getting uknowun property error
hi everyone,
I have wrtten below code and i want to use this in vf page. inorder to call the list account records, what must the value that I have to use in Pageblock table value. Could anyone explain me please ???.
public class Pagination_Example_Account {
public Apexpages.StandardSetController controler {set;get;}
public Integer size {set;get;}
public Pagination_Example_Account()
{
List<Account> acc=[select Id,name from Account];
controler= new Apexpages.StandardSetController(acc);
controler.setPageSize(5);
}
public List<Account> act()
{
List<Account> ac=(List<Account>)controler.getRecords();
return ac;
}
}
vf code::
<apex:page controller="Pagination_Example_Account">
<apex:form>
<apex:pageBlock>
<apex:pageBlockTable value="{!accounts}" var="a">
<apex:column value="{!a.name}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
<apex:page>
I have wrtten below code and i want to use this in vf page. inorder to call the list account records, what must the value that I have to use in Pageblock table value. Could anyone explain me please ???.
public class Pagination_Example_Account {
public Apexpages.StandardSetController controler {set;get;}
public Integer size {set;get;}
public Pagination_Example_Account()
{
List<Account> acc=[select Id,name from Account];
controler= new Apexpages.StandardSetController(acc);
controler.setPageSize(5);
}
public List<Account> act()
{
List<Account> ac=(List<Account>)controler.getRecords();
return ac;
}
}
vf code::
<apex:page controller="Pagination_Example_Account">
<apex:form>
<apex:pageBlock>
<apex:pageBlockTable value="{!accounts}" var="a">
<apex:column value="{!a.name}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
<apex:page>
Please use below code. Thanks
Hemant
Use this code: