This file contains hidden or 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
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global" > | |
<lightning:notificationsLibrary aura:id="notifLib"/> | |
<lightning:button name="notice" label="Display Notice" onclick="{!c.showNotice}"/> | |
</aura:component> |
This file contains hidden or 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
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" > | |
<!--The empApi component Exposes the EmpJs Streaming API library which provides methods to subscribe and unsubscribe to a platform event channel using CometD(available in API version 44.0 or above)--> | |
<lightning:empApi aura:id="empApi"/> | |
<!-- Attribute to store platform event channel name --> | |
<aura:attribute name="channel" type="String" default="/event/Demo_Event__e"/> | |
<!--Displays messages via notices and toasts. This component requires API version 41.0 and later.--> | |
<lightning:notificationsLibrary aura:id="notifLib"/> | |
<!--Attribute to store object that is returned by the empApi.subscribe() method--> | |
<aura:attribute name="subscription" type="Map"/> | |
<!--attribute to show/ hide platform event message--> |
This file contains hidden or 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
HttpRequest req = new HttpRequest(); | |
req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionID()); | |
req.setHeader('Content-Type', 'application/json'); | |
String domainUrl=URL.getSalesforceBaseUrl().toExternalForm(); | |
system.debug('********domainUrl:'+domainUrl); | |
req.setEndpoint(domainUrl+'/services/data/v43.0/tooling/query/?q=SELECT+PercentCovered+FROM+ApexOrgWideCoverage'); | |
req.settimeout(12000); | |
req.setMethod('GET'); | |
Http h = new Http(); |
This file contains hidden or 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
public class apexCodeCoverageWrapper { | |
public Integer size {get;set;} | |
public Integer totalSize {get;set;} | |
public Boolean done {get;set;} | |
public String entityTypeName {get;set;} | |
public List<Records> records {get;set;} | |
} | |
public class Records { |
This file contains hidden or 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
<aura:application extends="force:slds"> | |
<c:SK_UserLocaleInfoCmp/> | |
</aura:application> |
This file contains hidden or 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
<aura:application extends="force:slds"> | |
<c:SK_LightningMapCmp/> | |
</aura:application> |
This file contains hidden or 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
public class DynamicPicklistOptionsUtility{ | |
@AuraEnabled | |
public static List<picklistWrapper> findPicklistOptions(string objAPIName, string fieldAPIname) { | |
list<picklistWrapper> returnValue = new list<picklistWrapper>(); | |
Map<String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe(); | |
// Get the object type of the SObject. | |
Schema.sObjectType objType = schemaMap.get(objAPIName); | |
// Describe the SObject using its object type. | |
Schema.DescribeSObjectResult objDescribe = objType.getDescribe(); |
This file contains hidden or 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
<aura:component controller="SK_GenericTreeGridController"> | |
<aura:attribute name="ltngcurrentRecId" type="String" required="true"/> | |
<aura:attribute name="ltngSobjectName" type="String" required="true"/> | |
<aura:attribute name="ltngParentFieldAPIName" type="String" required="true"/> | |
<aura:attribute name="ltngColumnLabelList" type="List" required="true" | |
description="provide comma seperated values"/> | |
<aura:attribute name="ltngColumnAPINameList" type="List" required="true" | |
description="provide comma seperated values"/> | |
<aura:attribute name="ltngHyperlinkColumn" type="String"/> | |
This file contains hidden or 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
<aura:component > | |
<aura:attribute name="ltngMessage" type="string"/> | |
<aura:attribute name="closeChildDivFunction" type="Aura.Action" default="{!c.defaultCloseAction}"/> | |
<div aura:id="maincontainer" style="background-color:#E6E6FA;border-style: solid;height:100px;margin:2%;padding:1%;"> | |
<b>This is Child component inside SK_AuraActionDemoCmp</b> | |
<br/> | |
<lightning:button label="Close via ChildCmp JS function" variant="neutral" onclick="{!c.defaultCloseAction}"/> | |
<lightning:button label="Close via Parent JS function" variant="brand" onclick="{!v.closeChildDivFunction}"/> | |
This file contains hidden or 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
<aura:application extends="force:slds"> | |
<c:SK_AccountTreeGridCmp ltngcurrentRecId="0010K00001qo2mrQAA"/> | |
</aura:application> |