You need to sign in to do that
Don't have an account?

Accessing Data Across Multiple Objects -- How?
I'm a Visualforce newbie, so apologies for the very basic question:
Is it possible to access data across multiple objects (standard and custom) and then present in a single Visualforce page? If so, how is this accomplished?
Thanks.
You'll find 100 ways to do this. My favorite way is to create ViewObjects (custom classes) from DataTransformationObjects that hold the customized model for display in Visualforce. You'll need to use a ControllerExtension. If you are keeping the objects distinct (like a pageBlockSection for Account info and a page Block Table for Contacts) then just use member instances in your controller of the records/lists. If you need to blend the two in markup, I'd recommend the custom class approach.
http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#StartTopic=Content/pages_controller_quickstart.htm
Check out the blog roll on the technical library. There are soooo many examples that a little digging will pay dividends
http://blog.sforce.com/
All Answers
You'll find 100 ways to do this. My favorite way is to create ViewObjects (custom classes) from DataTransformationObjects that hold the customized model for display in Visualforce. You'll need to use a ControllerExtension. If you are keeping the objects distinct (like a pageBlockSection for Account info and a page Block Table for Contacts) then just use member instances in your controller of the records/lists. If you need to blend the two in markup, I'd recommend the custom class approach.
http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#StartTopic=Content/pages_controller_quickstart.htm
Check out the blog roll on the technical library. There are soooo many examples that a little digging will pay dividends
http://blog.sforce.com/
Thank you!