You need to sign in to do that
Don't have an account?
Matjaz Gercar
pageBlockTable not showing any records
Hey all!
I am new in Salesforce development. I am trying to show all records in my own object, but all that I get is empty table with headers.
I suppose there is something wrong with calling my object's records. This is my code:
<apex:pageBlock title="Students">
<apex:pageBlockTable value="{!tudent__c}" var="all_students">
<apex:column value="{!all_students.Name__c}"/>
<apex:column value="{!all_students.Surname__c}"/>
<apex:column value="{!all_students.Address__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
I can't find the reason why is empty, so any helping clue is great:)
I am new in Salesforce development. I am trying to show all records in my own object, but all that I get is empty table with headers.
I suppose there is something wrong with calling my object's records. This is my code:
<apex:pageBlock title="Students">
<apex:pageBlockTable value="{!tudent__c}" var="all_students">
<apex:column value="{!all_students.Name__c}"/>
<apex:column value="{!all_students.Surname__c}"/>
<apex:column value="{!all_students.Address__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
I can't find the reason why is empty, so any helping clue is great:)
Please mark it as a best answer if helped.
Regards,
Ramakant
All Answers
Please mark it as a best answer if helped.
Regards,
Ramakant
recordSetVar it is. Hm. I am trying to figure out the reason, why I need it, since this code is from Trailhead. I suppose I store dataset into this variable? Or is there any other reason? And is it possible to work without this variable?