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
mromanimromani 

Object in VF page

I was wondering if there was a way to pass an object to a visualforce page.

 

I have a controller in my VF page and i make some controller method calls which need a record (or object) to do some work. So i would like to know if it is possible to somehow access an object or a record in my page, so that it can later be used by the controller i have.

 

Thanks in advance for any help.

David VPDavid VP

Yes, off course that's possible.

 

See the VisualForce reference guide for an example with a custom controller :

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_custom.htm

 

 There's also plenty of examples with standardcontrollers or controller extensions in there.