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
ConnectApi.SmartDataDiscoveryPredictInputRecords input = new ConnectApi.SmartDataDiscoveryPredictInputRecords(); | |
input.predictionDefinition = '0ORf0000000xxxxxxx'; | |
input.records = new List<Id>{'a291Y000002Exxxxxxx'}; | |
ConnectApi.SmartDataDiscoveryPrediction request = | |
ConnectApi.SmartDataDiscovery.predict(input); | |
// Everything up to here so far so good | |
System.debug('ConnectApi.SmartDataDiscoveryPrediction'); | |
System.debug(JSON.serializePretty(request)); |
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:page standardController="TASKRAY__Project_Task__c" sidebar="false" showHeader="false"> | |
<apex:slds /> | |
<!-- Need to include chatter so the new button on the AttachedContentNotes related list works --> | |
<style> | |
.hidden { | |
display: none; | |
} | |
</style> | |
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:page docType="html-5.0" standardStylesheets="false" showHeader="false" sidebar="false" standardController="Case" applyHtmlTag="false" applyBodyTag="false"> | |
<html> | |
<body> | |
<iframe style="width: 100%; height: 300px; border: 0;" | |
src='/apex/TASKRAY__trChecklistAction?Id={!Case.REPLACE_WITH_YOUR_CUSTOM_FIELD_NAME}' /> | |
</body> | |
</html> |
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
#TODO: Highlight line where cursor | |
Look at app: | |
https://sfdxdf17.na73.visual.force.com/apex/myApp?sfdc.tabName=01r1I000000c3dy | |
Examine app source | |
https://github.com/mtetlow/sfdxdf17-demo | |
### |
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
<div class="progress-bar--container"> | |
<div class="{!(v.projectCompletionPercentage == 0) ? 'progress-bar--bar progress-bar--zerowidthbar' : 'progress-bar--bar'}" style="{!'width: '+v.projectCompletionPercentage+'%'}"> | |
<span class="progress-bar--pct-complete-label">{!v.projectCompletionPercentage+'%'}</span> | |
</div> | |
</div> |
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
<aura:application > | |
<c:simpleRecordEdit /> | |
</aura:application> |
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
<aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global" > | |
<aura:attribute name="lockedObj" type="Object" /> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}" /> | |
<button onclick="{!c.addAtributeViaMutation}">Add Attribute via mutation then simple set</button> | |
<button onclick="{!c.addAtributeDeepSet}">Add Attribute via deep set</button> | |
<button onclick="{!c.log}">Log</button> | |
<div>Existing Attribute: {!v.lockedObj.existingAttribute}</div> | |
<div>New Attribute via mutation: {!v.lockedObj.newAttribute}</div> | |
<div>New Attribute via deep set: {!v.lockedObj.newAttributeDeep}</div> | |
</aura:component> |
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
<aura:component implements="forceCommunity:availableForAllPageTypes,flexipage:availableForAllPageTypes,force:hasRecordId" controller="trTestCtrl" access="global"> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}" /> | |
<aura:attribute name="testStr" type="String" default="default value" /> | |
<div>{!v.testStr}</div> | |
</aura:component> |
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:page standardController="TASKRAY__Project__c"> | |
<script src="/apex/dsfs__DocuSign_JavaScript" /> | |
<input class="btn" type="button" id="docusignActionLink" value="Send with DocuSign" /> | |
<script> | |
var recordId = '{!TASKRAY__Project__c.Id}'; | |
var sendToDocuSign = function(){ | |
var url = "/apex/dsfs__DocuSign_CreateEnvelope?DSEID=0&SourceID="+recordId; | |
var win = window.open(url, '_blank'); | |
win.focus(); | |
} |
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
<aura:application access="GLOBAL" extends="ltng:outApp"> | |
<aura:dependency resource="TASKRAY_LTNG:trProjectStatusBar"/> | |
</aura:application> |
NewerOlder