Skip to main content

Posts

Showing posts from July, 2022

Enhanced Dynamic DataTable using LWC to dynamically select columns (Fields) to display for any object

How we can show dynamic DataTable with Lightning Web Component ? In this post we will see how we can create a dynamic datatable. We will see how we can enhance custom Datatable to dynamically generate URL and display the clickable link in Lightning Datable for Formual Field with Hyperlink functions or VisualforcePage Link o a field, Reference field(Look-up, Master Detail or Standard reference field Created By, Modified By). Basically we will see enhanced custom Datatable to choose the columns similar to standard "Select field to display" on Object tab. Scenario: A developer has created a dynamic Datatable for the Business and he left teh organization. Now after few days Admin has added a new Formual Field on an object which is using Hyperlink function. Now this new column in the Table should be added along with the clickable URL. End user can select the fields to add in the existing custom datatable similar to Standard select fields to display. Steps to implement Step 1 : Cr