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
The Account Object viewed in its Sales Layout Tab
The Account Object viewed in its Marketing Layout Tab
The Account Object viewed in its Support Layout Tab
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 SalesforceRecord 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