View Apex Class Callable
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 class Extension implements Callable { | |
// Actual method | |
String concatStrings(String stringValue) { | |
return stringValue + stringValue; | |
} | |
// Actual method | |
Decimal multiplyNumbers(Decimal decimalValue) { | |
return decimalValue * decimalValue; |
View InhetitedSharingClasss
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 Inherited sharing class InhetitedSharingClasss | |
{ | |
Public List<Account> getAllAccount() | |
{ | |
return [SELECT Name FROM Account]; | |
} | |
} |
View InheritedSharingWthVisualforcePage
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 controller="InhetitedSharingClasss"> | |
<apex:repeat value="{!AllAccount}" var="record"> | |
{!record.Name}<br/> | |
</apex:repeat> | |
</apex:page> |
View forceCreateRecordController.js
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
({ | |
onCreate: function (component) { | |
var newCreateRecordEvent = $A.get('e.force:createRecord'); | |
if ( newCreateRecordEvent ) { | |
newCreateRecordEvent.setParams({ | |
'entityApiName': 'SimplusLab__c', | |
'defaultFieldValues': { | |
'CEO__c' : 'Nigam' | |
} |
View forceCreateRecord.cmp
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"> | |
<lightning:button label="Create Simpluslabs Record" variant="brand" onclick="{!c.onCreate}"/> | |
</aura:component> |
View deleteRecordUsingLSDController.js
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
({ | |
handleDeleteRecord: function(component, event, helper) { | |
component.find("recordHandler").deleteRecord($A.getCallback(function(deleteResult) { | |
if (deleteResult.state === "SUCCESS" || deleteResult.state === "DRAFT") { | |
//console.log("Record is deleted."); | |
} else if (deleteResult.state === "INCOMPLETE") { | |
//console.log("User is offline, device doesn't support drafts."); | |
} else if (deleteResult.state === "ERROR") { |
NewerOlder