Skip to content

Instantly share code, notes, and snippets.

View vermadhirendra28's full-sized avatar

vermadhirendra28

View GitHub Profile
@vermadhirendra28
vermadhirendra28 / BulkUploadMetadata
Created February 11, 2020 06:50
upload bulk records for custom metadata records
/**
*@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{
@vermadhirendra28
vermadhirendra28 / DisplayParentFieldWithoutWrapper.cmp
Created October 8, 2019 10:15
Displaying the parent fields value on lightning data table without wrapper
/** 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}" />
@vermadhirendra28
vermadhirendra28 / DisplayParentFieldValCont.apx
Created October 8, 2019 10:06
Gist for displaying parent values on lightning datatable using wrapper class
/**
*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(){
@vermadhirendra28
vermadhirendra28 / DynamicDataTableColumnWithModifyNewOption
Created August 17, 2019 09:30
Generic Lightning Datatable with New and modify Option
/**
* 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
*/
@vermadhirendra28
vermadhirendra28 / CreateDynamicDatatable
Created August 10, 2019 12:04
Dynamic Lightning Datatable
/**
* 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
*/