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 with sharing class DynamicPicklistController { | |
@AuraEnabled(cacheable=true) | |
public static List<String> getSObjectNames() { | |
List<String> sObjects = new List<String>(); | |
for (Schema.SObjectType sObjType : Schema.getGlobalDescribe().values()) { | |
String name = sObjType.getDescribe().getName(); | |
if (!sObjType.getDescribe().isCustomSetting() && | |
!sObjType.getDescribe().isDeprecatedAndHidden() && | |
sObjType.getDescribe().isCreateable()) { |
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
Set<String> set_string = new Set<String>{'one', 'two', 'three'}; | |
for (String str : set_string) { | |
System.debug(str); | |
set_string.remove(str); | |
System.debug(set_string.contains(str)); | |
} | |
System.debug(set_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
SELECT MetadataComponentId, | |
MetadataComponentName, | |
MetadataComponentType, | |
RefMetadataComponentId, | |
RefMetadataComponentName, | |
RefMetadataComponentType | |
FROM MetadataComponentDependency | |
Where RefMetadataComponentType ='LightningComponentBundle' |
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
<template> | |
<lightning-card> | |
<pre>{debugVal}</pre> | |
<div slot="footer"> | |
<lightning-button | |
name={saveBtn} | |
variant="brand-outline" | |
label="Save" |
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
<!-- | |
This is a template page that can be used as a starting point when needing to create an EasyXDM enabled | |
visualforce page that is called by a custom action in order to open custom UIs in the QLE | |
--> | |
<apex:page showheader="false" sidebar="false" id="thePage" lightningstylesheets="true" doctype="html-5.0"> | |
<head> | |
<apex:slds /> | |
<apex:includeLightning /> | |
<title>YOUR TITLE HERE</title> | |
<script type="text/javascript" src="{!$Resource.SBQQ__easyXDM}"></script> |
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
import { LightningElement } from 'lwc'; | |
const LINK = 'link'; | |
export default class ExampleComponent extends LightningElement { | |
columns = [ | |
{ | |
label: 'Label', | |
fieldName: 'name' |
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
// get existing record | |
SBQQ__Quote__c existingQuote = [ | |
SELECT formula_Field__c | |
FROM SBQQ__Quote__c | |
WHERE Id = 'xxxxxxxxxxxxxxxxxx' | |
]; | |
// capture the current value of the formula field | |
Decimal oldFormulaValue = existingQuote.formula_Field__c, | |
newFormulaValue, |