This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
*@Desc: A class that can be used to insert and update multiple custom metadata records in a single transaction. | |
**/ | |
public class BulkUploadMetadata { | |
/** | |
*@desc: A method to insert multiple records for custom metadata object in a single go. | |
**/ | |
public void insertbulkMetadata(){ | |
try{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** lightning component code **/ | |
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome, | |
force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" | |
access="global" controller="DisplayParentFieldValCont"> | |
<aura:attribute name="listRecords" type="list" /> | |
<aura:attribute name="listCol" type="list" /> | |
<!-- aura helper methods --> | |
<aura:handler name="init" value="{!this}" action="{!c.init}" /> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
*A class to display the value of the parent field on the standard lightning datatable using wrapper. | |
**/ | |
public class DisplayParentFieldValCont{ | |
/** | |
*@Desc: A method to fetch details of parent record | |
**/ | |
@AuraEnabled | |
public static map<String,Object> getParentDetails(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Desc: A apex class which can be used to create a dynamic lightning datatable only by passing the object name and fields name | |
* that we need to display as column for the Datatable | |
**/ | |
public class CreateDynamicDatatable { | |
/** | |
* Wrapper that will be used by the lightning datatable as columns | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Desc: A class which can be used to create a dynamic lightning datatable only by passing the object name and fields name | |
* that we need to display as column for the Datatable | |
**/ | |
public class CreateDynamicDatatable { | |
/** | |
* Wrapper that will be used by the lightning datatable as columns | |
*/ |