You need to sign in to do that
Don't have an account?
dlCamelot
Admin can't see any accounts on basic page
Made a basic VF page for accounts that compiles with no errors. However, the page columns render blank and don't show any records. Is there something I need to adjust in the view permissions?
Note: I'm trying to view the account page from the admin user who is also the owner of all accounts.
Page Code:
<apex:page showHeader="true" sidebar="true" standardStylesheets="true" docType="html-5.0" standardController="Account" recordSetVar="accounts">
<apex:pageBlock>
<apex:pageBlockTable value="{!accounts}" var="a">
<apex:column value="{!a.Name}" />
<apex:column value="{!a.ShippingStreet}<{!a.ShippingCity}{!a.ShippingState}{!a.ShippingPostalCode}" />
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
Note: I'm trying to view the account page from the admin user who is also the owner of all accounts.
<apex:page showHeader="true" sidebar="true" standardStylesheets="true" docType="html-5.0" standardController="Account" recordSetVar="accounts"> <apex:pageBlock> <apex:pageBlockTable value="{!accounts}" var="a"> <apex:column value="{!a.Name}" /> <apex:column value="{!a.ShippingStreet}<{!a.ShippingCity}{!a.ShippingState}{!a.ShippingPostalCode}" /> </apex:pageBlockTable> </apex:pageBlock> </apex:page>
Page Code:
<apex:page showHeader="true" sidebar="true" standardStylesheets="true" docType="html-5.0" standardController="Account" recordSetVar="accounts">
<apex:pageBlock>
<apex:pageBlockTable value="{!accounts}" var="a">
<apex:column value="{!a.Name}" />
<apex:column value="{!a.ShippingStreet}<{!a.ShippingCity}{!a.ShippingState}{!a.ShippingPostalCode}" />
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
There is nothing wrong in code you need to modify the URL.
Make sure you are passing the Id in the URL.
yoursalesforceinstance/apex/pagename?id=accountId
here is a sample URL
https://eu5.salesforce.com/apex/displayAccounts?id=00124000007rMs8
Donot forget to select best answer to make our efforts visible in the developer forum.
Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help
All Answers
Is it displaying a blank table? As I tried the same thing it was working fine for me.
There is nothing wrong in code you need to modify the URL.
Make sure you are passing the Id in the URL.
yoursalesforceinstance/apex/pagename?id=accountId
here is a sample URL
https://eu5.salesforce.com/apex/displayAccounts?id=00124000007rMs8
Donot forget to select best answer to make our efforts visible in the developer forum.
Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help
How you call this.
Your code should work
Refer to the below link.
They are saying call the page by using the following URL:
https://*salesforce_instance*/apex/multOppEdit
http://developer.force.com/cookbook/recipe/editing-multiple-records-using-a-visualforce-list-controller%EF%BB%BF
Donot forget to select best answer to make our efforts visible in the developer forum.
Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help