This. SObjectRelatedFieldListValues.push(finalSobjectRow) This._flattenTransformation(relatedFieldValue, finalSobjectRow, rowIndex)įinalSobjectRow = relatedFieldValue Online Communities are the face of your brand and Salesforce is an awesome community platform. If(TableComponentMetadata.Field_Value_c != null)įieldAPINameList = TableComponentMetadata.Field_Value_c.split(',') įor(integer i = 0 i lstDataTableColumns List lstDataTableData String TableTitle ) Go to Administration > branding > Add the header & footer documents in header & footer fields. If(TableComponentMetadata.Header_Value_c != null)ĬolumnList = TableComponentMetadata.Header_Value_c.split(',') Currently, in the JS I have hardcoded the Metadata record Name value, but you can also make this dynamic.ĪPEX Class public with sharing class DynamicLWCDataTableController static DataTableResponse GetWrapperOfSObjectFieldColumnActionValues(String TableName)ĭynamic_Table_DataTable_mdt TableComponentMetadata = This code can be further modified to achieve more than one level. The LWC is also able to show the related object field values up to one level. The LWC provides input to the apex method which in turn gets the relevant Metadata. In my APEX class, I have used the Wrapper to generate my DataTable columns and field values. Once we have configured the metadata, the next is to write LWC and APEX code. You can add your own logic to control most of the things. Select Existing Form from beneath the Form drop-down under 2. If you are a Salesforce Certified Administrator, show it under your Headlines, on your Linkedin. Select Create New Ad: Or, if you want to use existing ad content, select browse existing content. I am also controlling the table title using the metadata. The first step in your new career is to change your title on your Linkedin.That is if the first column is Name then the field should also be Name or as per requirement.The most important thing to consider is that the sequence of the Field Value and the Header Value field needs to be consistent. The Header Value field contains the column names comma separated.This will help me to determine, what is the field along with its type. The format is 'fieldName' +':'+ 'type'.In the Field Value field, the way I have kept the values is in a specific format comma separated.The DataTable attribute Columns consists of different properties like 'label', 'fieldName', and 'type'. This I will eventually use in my APEX code to generate the Data Table using LWC. In the above image, you can see how I have added values for SOQL, fields, and columns.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |