You need to sign in to do that
Don't have an account?
mark@rally
Custom Objects and Standard Controllers
Does Salesforce generate a standard controller when you create a Custom Object? If yes, how do you reference it? For example, here is how you reference a standard one like Account:
<apex:page standardController="account" tabStyle="RPMProduct__c">
Although tabSytle supports the Custom Object named RPMProduct, standardController does not. The RPMProduct page is using some controller. What controller does a custom object use? How do I use it in VisualForce?
Also is there a list of standard objects/controllers/fields to reference while developing with VisualForce or Apex code for that matter? The only method I know is to view the standard object and fields through Setup -> Customize in the Salesforce subscription (time consuming).
Thanks,
Mark
<apex:page standardController="account" tabStyle="RPMProduct__c">
Although tabSytle supports the Custom Object named RPMProduct, standardController does not. The RPMProduct page is using some controller. What controller does a custom object use? How do I use it in VisualForce?
Also is there a list of standard objects/controllers/fields to reference while developing with VisualForce or Apex code for that matter? The only method I know is to view the standard object and fields through Setup -> Customize in the Salesforce subscription (time consuming).
Thanks,
Mark
If you are using the Eclipse plugin, available here, then you should be able to double-click the .schema file in your Apex project. That launches the Schema Browser which gives you a way to see objects and fields and run queries on them easily right in the IDE. If you are on a Mac, and don't want to use Eclipse, there is also Simon Fell's SoqlXplorer which does similar things. In addition, it has a nice graphical schema view.
In addition to seeing all the standard objects, you will also see all your custom objects and fields as well.
Do you use VisualForce? Any thoughts on the controller for a custom object?
You'll probably need to build the controller by hand for any custom object, but I'm not 100% sure.
In my test, I kept writing "Positions__c" instead of "Position__c" so of course it didn't work.
Something like this:
Code: should work fine for any custom object.
Message Edited by aezell on 09-28-2007 03:39 PM
Similar question but will create new post for clarity. Thanks for the help on this.