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
<template> | |
<div style="width: 800px; height: 600px"> | |
{selectedValue} | |
<div class="slds-form-element"> | |
<label class="slds-form-element__label" for="combobox-id-16" id="combobox-label-id-130">Relate To</label> | |
<div class="slds-form-element__control"> | |
<div class="slds-combobox_container"> | |
<div class="slds-combobox slds-dropdown-trigger slds-dropdown-trigger_click slds-is-open"> | |
<div class="slds-combobox__form-element slds-input-has-icon slds-input-has-icon_right" | |
role="none"> |
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
<template> | |
<div class="slds-form-element"> | |
<label class="slds-form-element__label" for="combobox-id-16" id="combobox-label-id-138"><template | |
if:true={required}> | |
<abbr class="slds-required" title="required">* </abbr> | |
</template>{label}</label> | |
<div class="slds-form-element__control"> | |
<div class="slds-combobox_container"> | |
<div class="slds-combobox slds-dropdown-trigger slds-dropdown-trigger_click slds-is-open"> | |
<div class="slds-combobox__form-element slds-input-has-icon slds-input-has-icon_right" role="none"> |
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
public with sharing class MassJunctionCreatorController { | |
@AuraEnabled | |
public static void saveJunctions(String jsonRecords) { | |
try { | |
List<CaseRecommendation__c> junctionRecords = (List<CaseRecommendation__c>) JSON.deserialize( | |
jsonRecords, | |
List<CaseRecommendation__c>.class | |
); | |
insert junctionRecords; | |
} catch (Exception e) { |
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
.DXPTheme * { | |
/** | |
awesome styling, I don't know so much about CSS | |
*/ | |
} |
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
//APEX Code | |
@AuraEnabled(cacheable = false) | |
public static String decryptToken(String encryptedToken) { | |
Blob key = EncodingUtil.base64Decode(MY_CUSTOM_SETTING_INSTANCE.Secure_Secret__c); | |
Blob data = EncodingUtil.base64Decode(encryptedToken); | |
Blob decrypted = Crypto.decryptWithManagedIV(MY_CUSTOM_SETTING_INSTANCE.Algorithm__c, key, data); | |
String token = decrypted.toString(); | |
return token; | |
} |