Accidental Admin Toolbox: See any Object in all page Layouts side-by-side

This time around, we help you level up your Layout navigation game with yet another Dynamic Lightning Component.

Up until now, for comparative views of details from Objects, you’d cross paths with the usual suspects – disparate data.

With the right Dynamic Lightning Component, you could change this. Lightning Components are bundled with a design resource element to make Components dynamic and accept values from any Object when deployed.

Here, we build on this and make a Lightning Component to view any Object’s details in each Layout with relevant sections and Fields irrespective of Object and Record Types. This also boosts departmental interoperability and consensus. Previews of each Layout open up side-by-side through multiple tabs as depicted below.

The Account Object viewed in its Main Layout Tab

See Object page Layouts

The Account Object viewed in its Sales Layout Tab

See Object page Layouts

The Account Object viewed in its Marketing Layout Tab

The Account Object viewed in its Support Layout Tab

See Object page Layouts

Preview showing all object Layouts

Go over the code illustration for this here:

PageLayoutRecordDisplay.cmp

PageLayoutRecordDisplayController.js

PageLayoutRecordDisplayHelper.js

PageLayoutRecordDisplay.design

PageLayoutRecordDisplayController.apxc

customLookup.cmp

customLookupController.js

customLookupHelper.js

customLookup.css

customLookupResultController.js

Conclusion

The code snippets above lets agents and accidental admins simultaneously compare Layout Fields irrespective of Salesforce Record Type. We hope this encourages you to go on and make Dynamic Components.

For further assistance with Customizations and dynamic enablements, do reach out to us at sales@hicglobalsolutions.com

Our Location worldwide
India
3rd Floor, A-10, Pegasus Tower, Sector 68, Noida, Uttar Pradesh 201301 +91-1203117884
SR Tower 2nd Floor Hydel Gate Haldwani Uttarakhand 263126 +91-5946359996
USA
333 West Brown Deer Road Unit G – 366 Milwaukee WI, USA 53217 +1(262) 310-7818
UK
7 Bell Yard, London, WC2A 2JR +44 20 3239 9428
Canada
HIC Global Solutions INC
43 Lafferty Lane, Richmond Hill, L4C 3N8, CA +1(262) 310-7818