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="SkRecordTypeSelectionController"> | |
<aura:attribute name="objType" type="String" required="true" default="Opportunity"/> | |
<aura:attribute name="selectedRecordType" type="String"/> | |
<aura:attribute name="recordTypeList" type="Object[]"/> | |
<aura:handler name="init" action="{!c.doInit}" value="{!this}" /> | |
<div role="dialog" tabindex="-1" class="slds-modal slds-fade-in-open"> | |
<div class="slds-modal__container"> | |
<div class="slds-modal__header"> | |
<lightning:buttonIcon class="slds-modal__close" iconName="utility:close" size="large" |
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="recordId" type="String" required="true"/> | |
<aura:attribute name="recordInfo" type="Object" access="private"/> | |
<aura:attribute name="record" type="Object" access="private"/> | |
<aura:attribute name="recordError" type="String" access="private"/> | |
<aura:attribute name="currView" type="String" /> | |
<aura:attribute name="accountRecordType" type="String"/> | |
<aura:attribute name="isRecordDeleted" type="boolean" default="false" /> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/> | |
<force:recordData aura:id="recordHandler" recordId="{!v.recordId}" layoutType="FULL" |
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
/*Now consider a scenario where we want to pre-populate below contact fields: | |
LastName | |
Birthdate | |
Level__c (custom field) | |
Category__c(custom lookup field) | |
*/ | |
string redirectUrl=''; | |
String baseURL = Url.getSalesforceBaseUrl().toExternalForm(); |
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="show" type="Boolean" default="false" /> | |
<aura:handler name="change" value="{!v.show}" action="{!c.spinnerDisplayHandler}"/> | |
<div class="slds-align--absolute-center"> | |
<lightning:spinner aura:id="spinner" variant="brand" size="large" class="slds=hide"/> | |
</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
<aura:application access="GLOBAL" extends="ltng:outApp"> | |
<c:VFPageComponent/> | |
</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:event type="COMPONENT" description="Event template" > | |
<aura:attribute name="valuePassedFromEvent" type="string"/> | |
</aura:event> |
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
//Utility to find SFDC current Org API Version | |
public class UtilityClassForSFDC{ | |
public static decimal findAPIVersionOfOrg(){ | |
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'); |
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_AccListViewController"> | |
<aura:attribute name="recList" type="List" /> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/> | |
<aura:registerEvent name="skEvent" type="c:SK_AccListViewEvent"/> | |
<aura:handler event="aura:waiting" action="{!c.showSpinner}"/> | |
<aura:handler event="aura:doneWaiting" action="{!c.hideSpinner}"/> | |
<div class="slds-align--absolute-center"> | |
<lightning:spinner aura:id="spinner" variant="brand" size="large" class="slds=hide"/> | |
</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 controller="SK_AccountListController" extends="c:SK_CallToServerUtility"> | |
<aura:attribute type="Object" name="returnedRecords" /> | |
<aura:attribute type="string" name="searchValue" default="" /> | |
<aura:set attribute="msg" value="SK_CallToServerUtility component is inherited in SK_AccountList Component"/> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/> | |
<div> | |
<div class="slds-align--absolute-center"> | |
Inherited Component attribute (msg) value set by this component:<b>{!v.msg}</b> | |
</div> | |
<br/> |
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
<apex:page standardcontroller="Account" extensions="SK_LocalizationDemoController" language="{!selectedLang}" sidebar="false"> | |
<apex:form > | |
<div > | |
<div style="float:right"> | |
<apex:selectList value="{!selectedLang}" size="1"> | |
<apex:selectoptions value="{!AvailableLanguages}"/> | |
<apex:actionsupport event="onchange"/> | |
</apex:selectlist> | |
</div> | |
</div> |