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
Raghavendra ARaghavendra A 

Visualforce page to handle View, Edit and Detailed page mode in a same visualforce page

Hi All,

I am trying to biuld a visualforce page to handle View, Edit and Detailed page mode in a same visualforce page. Could you please help me how to proceed this and also,
  • Let me know what are the best practices that we need to adopt while doing this.
  • Can I use different controllers for different functions like View, Edit or Detailed Page?

Regards,
Raghu
Best Answer chosen by Raghavendra A
SonamSonam (Salesforce Developers) 
Hi Raghu, Did you get a chance to check  apex:InlineEditSupport:
https://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_inlineEditSupport.htm

If you ise this - you can save the record using inline edit feature and view the record on the same VF.