• Siri Reddy 5
  • NEWBIE
  • 20 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
Hello Everyone,

I have written the below code to find that all the existing account records dont show up in the Page Block Table. However when I create a new account record it shows up. What am I missing?

<apex:page standardController="Account" RecordSetVar="Accounts">
<apex:form >
<apex:pageBlock title="Accounts List" id="pbAccList" >
<apex:pageBlockTable value="{!Accounts}" var="acc">
<apex:column value="{!acc.Name}"/>
<apex:column value="{!acc.Industry}"/>
<apex:column value="{!acc.rating}"/>
<apex:column value="{!acc.phone}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>

Thank you
Siri
Hi,

Please help me know the difference between the below two :-

List<Account> accntList = new List<Account>();  ----   I'm creating an Instance.
List<account> accntList; ----   I'm just declaring a list variable.

Thanks and regards
Siri
Hello Everyone,

I have written the below code to find that all the existing account records dont show up in the Page Block Table. However when I create a new account record it shows up. What am I missing?

<apex:page standardController="Account" RecordSetVar="Accounts">
<apex:form >
<apex:pageBlock title="Accounts List" id="pbAccList" >
<apex:pageBlockTable value="{!Accounts}" var="acc">
<apex:column value="{!acc.Name}"/>
<apex:column value="{!acc.Industry}"/>
<apex:column value="{!acc.rating}"/>
<apex:column value="{!acc.phone}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>

Thank you
Siri
Hi,

Please help me know the difference between the below two :-

List<Account> accntList = new List<Account>();  ----   I'm creating an Instance.
List<account> accntList; ----   I'm just declaring a list variable.

Thanks and regards
Siri