You need to sign in to do that
Don't have an account?
narendra jagwan
relative org..
<apex:page standardController="Account" recordSetVar="Accounts">
<apex:dataList var="a" value="{!Accounts}" type="1">
{!a.name}
</apex:dataList>
</apex:page>
i write thats code bt no record show in ma vf page .. what problem ma org.. pllzzzz help me
<apex:dataList var="a" value="{!Accounts}" type="1">
{!a.name}
</apex:dataList>
</apex:page>
i write thats code bt no record show in ma vf page .. what problem ma org.. pllzzzz help me
the code should be something similar to the one below:
<!-- Page: -->
<apex:page controller="dataListCon">
<apex:dataList value="{!accounts}" var="account">
<apex:outputText value="{!account.Name}"/>
</apex:dataList>
</apex:page>
/*** Controller: ***/
public class dataListCon {
List<Account> accounts;
public List<Account> getAccounts() {
if(accounts == null) accounts = [SELECT Name FROM Account LIMIT 10];
return accounts;
}
}