function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
brooksjordanbrooksjordan 

the object as is . . .

What is the simplest way to call the Account object with a standard controller?

I'd like to call the Account home page with its views as well as the individual records.

Feel free to point me to any appropriate tutorials, too.

Thanks,
Brooks
werewolfwerewolf
<apex:page standardController="Account">...?
werewolfwerewolf
The Account home page is just /001 (that's its relative URL).
brooksbrooks
Thanks for the reply werewolf.

Right, that calls the object, but what's the markup that renders the full page?
RickyGRickyG
brooks -

Do you want to use URLFOR()?
brooksbrooks
This is the kind of thing I was looking for:

Code:
<apex:page standardController="Account">
    <apex:enhancedList type="Account" height="300" rowsPerPage="10" id="AccountList">
</apex:enhancedList> </apex:page>

 . . . and the component library in general. Thanks.

Brooks


RickyGRickyG
The relative URL should take you to the Account home page with all the associated views.  You could also view your own Visualforce page using a standard set controller if that would be appropriate.

Hope this helps.
brooksbrooks
Thanks.

What is the advantage of using a relative URL versus the listViews component?

Code:
<apex:page showHeader="true" tabstyle="Account">
<apex:ListViews type="Account" />
</apex:page>