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_AuraComponentAttributeUsageCmp/> | |
</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
Map<string,Schema.RecordTypeInfo> ss= Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName(); | |
system.debug('****ss:'+ss); | |
for(string rt:ss.keyset()){ | |
Schema.RecordTypeInfo rtpeInfo=ss.get(rt); | |
system.debug('****getDeveloperName:'+rtpeInfo.getDeveloperName()); | |
system.debug('****getName:'+rtpeInfo.getName()); | |
system.debug('****getRecordTypeId:'+rtpeInfo.getRecordTypeId()); | |
system.debug('****isActive:'+rtpeInfo.isActive()); | |
system.debug('****isAvailable :'+rtpeInfo.isAvailable()); | |
system.debug('****isDefaultRecordTypeMapping :'+rtpeInfo.isDefaultRecordTypeMapping()); |
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"> | |
<!-- extends "force:slds" interface so that SLDS will be imported in lightning component--> | |
<c:SK_LightningBasicsSSC/> | |
</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:component > | |
<aura:handler name="init" value="{! this }" action="{!c.doInit}"/> | |
<aura:attribute name="ltngHour" type="Integer" default="00" /> | |
<aura:attribute name="ltngMinute" type="Integer" default="00"/> | |
<aura:attribute name="ltngSecond" type="Integer" default="00"/> | |
<aura:attribute name="ltngTimmer" type="Integer" default="00:00:00" /> | |
<aura:attribute name="ltngIsDisplayed" type="boolean" default="false"/> | |
<div class="slds-card slds-align_absolute-center" style="width:250px;padding:8px;" > |
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:handler name="init" value="{! this }" action="{!c.doInit}"/> | |
<aura:attribute name="ltngCurrTime" type="String" default="00:00:00"/> | |
<aura:attribute name="ltngIsDisplayed" type="boolean" default="false"/> | |
<div class="slds-card slds-align_absolute-center" style="width:250px;padding:8px;" > | |
<div class="slds-grid slds-wrap" > | |
<div class="slds-col slds-size_1-of-1 slds-align_absolute-center" > | |
<b>Stopwatch</b> | |
</div> |
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="lightning:isUrlAddressable,force:appHostable" access="global"> | |
<aura:attribute name="urlParam" type="string"/> | |
<div class="slds-card"> | |
If you implements "lightning:isUrlAddressable" interface, then by | |
using v.pageReference,you can get URL params. | |
<div class="slds-box"> | |
Account name from URL parameter: <b>{!v.pageReference.state.accname}</b> | |
</div> | |
</div> | |
</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
public class SK_ScheduleJobUtility{ | |
public static void findScheduledJobDetails(string jobType){ | |
string jobTypeNumber=jobTypeMap.get(jobType); | |
if(jobTypeNumber!=null && jobTypeNumber!=''){ | |
List<CronTrigger> cjList=new List<CronTrigger>(); | |
Set<string> userIdSet = new Set<string>(); | |
for(CronTrigger cj :[select id, CronJobDetailId,CronJobDetail.Name,CronJobDetail.JobType, ownerId from CronTrigger where CronJobDetail.JobType=:jobTypeNumber]){ | |
cjList.add(cj); | |
userIdSet.add(cj.ownerId); | |
} |
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="Demo_CreateDynamicCmpController"> | |
<aura:attribute name="ltngAccList" type="List"/> | |
<aura:attribute name="menu" type="List" default="View,Edit"/> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/> | |
<div class="slds-grid slds-wrap"> | |
<div class="slds-col slds-size_1-of-1 slds-small-size_1-of-2 slds-medium-size_2-of-4"> | |
<lightning:card footer="@sunil02kumar" title="Recient Accounts"> | |
<aura:set attribute="actions"> |
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_FirstComponent/> | |
<c:SK_SecondComponent/> | |
</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:component > | |
<aura:attribute name="childValue" type="string" default="Child"/> | |
<aura:registerEvent name="changeValueEvent" type="c:SK_LightningEventChannel"/> | |
<lightning:button name="ddff" label="Fire event" onclick="{!c.fireEvent}"/> | |
</aura:component> |