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
eshhheshhh 

vf page in controller

Hi folks,
I have one vf page with some design and it will repeat the values based on controller,
My object is i want to use that vf page same as in controller through any object or any page reference 
please suggest me is there any related posts or code 
Thanks
harsha__charsha__c
Suppose, you are showing Account records in the page by querying them in the respective controller. Are you expecting the same page and controller to work for Contacts/Opportunities/any other objects as well?

If yes, then it is possible by making the class generic(making the SOQL in a generic way).

Regards,
- Harsha.