Use Salesforce Mini Page Layout in Visualforce Page

Mini Page Layout is a nice feature of Salesforce,it can be maintained for every parent object in master-detail or lookup relationship in order to display additional record information without jumping to its detail page. MiniPageLayout1

Enable Mini Page Layout

First,navigate to Customize > User Interface and check “Enable Hover Details” which can enable Mini Page Layout mode in your Salesforce. User Interface

Usage of Mini Page Layout

Mini Page Layout also can be used in Visualforce Pages with only a few lines of code, like the following.

Customize Mini Page Layout

If you want to customize them,just navigate to “Page Layouts” and find the Mini Page Layout link. MiniPageLayout3 Select which fields should be displayed, and don’t forget to save your changes. MiniPageLayout4
Enjoy it!

Related Post

Using Aggregate SOQL queries/results in Batch Apex In previous post, we had created a schedulable batch apex that implements Database.Batchable in Salesforce, but if you want to use SOQL having aggregate functions like SUM(), MAX(), COUNT() on results grouped by “GROUP BY” clause in start execution, changing to interface Database.Ba...
Determine odd or even row in apex:repeat loop Sometimes we need determine if the index is odd or even in tag, such as showing table row in alternate color. There's a simple soluton as below code: Enjoy it!
Date format and DateTime format Date format in Apex 1.Use Date format method 2.Convert to String directly 3.Convert to DateTime DateTime format in Apex
Save approver automatically in Approval Processes ... In previous post,I shared how to 《Create Roll-Up Summary field to count Contacts on Account with Process Builder and Flows》. In this post I will share about how to save approver(current user) to the target object automatically in Approval Processes, with Process Builder and Flows. Actually,this ...