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
//Adapter class for b2b_QueryBuilder | |
public with sharing class QueryBuilder { | |
private b2b_QueryBuilder builder; | |
private Schema.SObjectType sobjectType; | |
private String conditionLogic; | |
private List<String> fields = new List<String>(); | |
private List<String> conditionList = new List<String>(); | |
private List<String> orderByList = new List<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
<apex:page standardController="Case" lightningStylesheets="true" extensions="CaseTRAddendumExtension" showHeader="false" applyHtmlTag="false"> | |
<apex:slds/> | |
<div> | |
<apex:form> | |
<apex:pageBlock> | |
<apex:pageBlockSection columns="2"> | |
<apex:sectionHeader title="{!$Label.Create_Addendum_for_Case} {!Case.CaseNumber}" subtitle="{!$Label.Are_you_sure_you_want_to_create_an_addendum}?" | |
/> |
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="Case" lightningStylesheets="true" extensions="CaseTRAddendumExtension" showHeader="false" applyHtmlTag="true" applyBodyTag="false"> | |
<head> | |
<apex:slds/> | |
</head> | |
<body class="slds-scope"> | |
<apex:form> | |
<apex:pageBlock> | |
<apex:sectionHeader title="{!$Label.Create_Addendum_for_Case} {!Case.CaseNumber}" subtitle="{!$Label.Are_you_sure_you_want_to_create_an_addendum}?" | |
/> |
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
double lat = 50.3803887; | |
double lng = 4.9853501; | |
double LongRef = 0.076042943; | |
double bLamb = 6378388 * (1 - (1 / 297)); | |
double aCarre = Math.pow(double.valueOf(6378388.0), double.valueOf(2.0)); | |
double eCarre = (aCarre - Math.Pow(bLamb, double.valueOf(2.0))) / aCarre; | |
double KLamb = 11565915.812935; | |
double nLamb = 0.7716421928; |
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
<html> | |
<head> | |
<apex:slds /> | |
<script> | |
handleLoad = () => { | |
const labelArgument = "{!$ObjectType.Sales_Unit__c.labelPlural}"; | |
const deleteConfirmed = confirm(`{!$Label.Confirm_Delete}`); | |
if (deleteConfirmed) { | |
confirmDelete(); |
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
#include <SPI.h> | |
#include <Ethernet.h> | |
EthernetClient client; | |
unsigned long byteCount = 0; | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; | |
char server[] = "collabyrinth.be"; | |
// Set the static IP address to use if the DHCP fails to assign | |
IPAddress ip(192, 168, 1, 39); |
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 MyClass { | |
@AuraEnabled | |
public Milestone__c milestone { get; set; } | |
@AuraEnabled | |
public List<Deliverable__c> deliverables { get; set; } | |
public MyClass(){} | |
} |
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 MyClass { | |
@AuraEnabled | |
public Milestone__c milestone { get; set; } | |
@AuraEnabled | |
public List<Deliverable__c> deliverables { get; set; } | |
public MyClass(){} | |
} |
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
@track arrayHasItems = false | |
@track theArray = []; | |
//Computed | |
get arrayHasItemsComputed() | |
{ | |
return this.theArray.length > 0; | |
} | |
//Not computed |
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
//Throws Internal Salesforce Error | |
try { | |
insert new ContentDocumentLink(); | |
} catch (Exception exceptionInstance){ | |
} | |
//Deploys without errors | |
try { | |
ContentVersion cv = new ContentVersion(); |
NewerOlder