Sunday, December 18, 2016

Visualforce - Beyond Basics Series 26 - build a standard page easily

What i mean by standard page ?

I mean the standard detail page for salesforce records, Its easy to recreate standard details page in visualforce.

What are the common use case ?


  1.  When you want to build a detail page but doesn't want to show any related records
  2.  When you want to show the detail page in tabbed view or any custom view other than the standard vertical layout.
  3.  When you want to show the detail page showing fields from parent/child relationship


How to do for inline pages for Page Layout ?

When you embed an inline page in the Page layout, if you use mode="maindetail",  in the pageblock tag, then you will see the detail fields with same styling as in standard page. Also, it support inlineedit by passing specifying mode="inlineEdit"    


Where is the Code ?

I have illustrated the concept by building a quick page resembling the standard detail page for opportunity.

No comments:

Post a Comment

Thanks for reading my blog !