function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:page Controller="LeadRecords"> <apex:form> <apex:pageBlock> <apex:pageBlockTable value="{!LeadList}" var="l"> <apex:column value="{!l.company}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:form> </apex:page>
public class LeadRecords { public list<Lead> LeadList{set;get;} public LeadRecords(){ LeadList=[select id,company from Lead]; } }
Make Lead Object as Private at OWD settings and try below code
Mark it as best Answer if it helps you.
Thanks ,
karthik