• bdhcode
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
this works when referencing standard object like accounts but below returns an error message "plan_c does not exist" when referencing a custom object 
 
<apex:page standardController="plan_c">

   Hello {!$User.FirstName}!    
   
   <p>You are viewing the {!plan_c.name} account.</p>
   

  </apex:page>
 
 
Saw some others had this problem a while back but not able to find a solution on the board.  Something simple and obvious perhaps given how basic this is?
 
this works when referencing standard object like accounts but below returns an error message "plan_c does not exist" when referencing a custom object 
 
<apex:page standardController="plan_c">

   Hello {!$User.FirstName}!    
   
   <p>You are viewing the {!plan_c.name} account.</p>
   

  </apex:page>
 
 
Saw some others had this problem a while back but not able to find a solution on the board.  Something simple and obvious perhaps given how basic this is?
 

I am trying to understand standard controllers vs. custom--and how they can be used with Custom Objects?

 

Most of the code samples I have found all use the standard Account or Contact as the example like...

 

<apex:page standardController="Account" showHeader="true"  tabStyle="Account" > 

 

I have several Custom Objects that I have created---and have trying to create a simple Tabbed view of the object detail and related lists instead of the typical list view--using VF.

 

I am just starting on VF...

 

>Do standard controllers get 'auto-created' for each custom object?--assume so and thats how the display using standard SF look?

 

> When I try starting my VF page to be used on my Custom Object with...

 

 

<apex:page standardController="ThenameIusedtocreatetheobject_c" showHeader="true"  tabStyle="ThenameIusedtocreatetheobject_c"" > 

 

 

I get errors - ThenameIusedtocreatetheobject_c Does not Exist, etc.

 

 

What am I missing about standard controllers on custom objects?  Do all custom objects require a custom controller to be coded?

 

Thanks for the assistance...

 

KS