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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!-- Bootstrap --> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> |
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
/** | |
* Trigger on Object | |
* | |
* @author Tommaso Bolis | |
* @version 1.0 | |
* @code 001 | |
*/ | |
trigger ObjectTrigger on Object (after delete, after insert, after undelete, after update, before delete, before insert, before update) { | |
objectTriggerHandler handler = new objectHandler(); |
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
/** | |
* Handler for Object Trigger | |
* | |
* @author Tommaso Bolis | |
* @version 1.0 | |
* @code 001 | |
*/ | |
public with sharing class ObjectTriggerHandler { | |
private boolean m_isExecuting = false; |
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 LightningComponentController { | |
@AuraEnabled | |
public static List<Object__c> getObjects() { | |
// Check to make sure all fields are accessible to this user | |
String[] fieldsToCheck = new String[] { | |
'Id', 'Name', 'Custom_Field1__c', 'Custom_Field2__c', 'Custom_Field3__c' | |
}; | |
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
// Load objects from Salesforce | |
getObjects: function(component, event, helper) { | |
// Create the action | |
var action = component.get("c.getObjects"); | |
// Add callback behavior for when response is received | |
action.setCallback(this, function(response) { | |
var state = response.getState(); |
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
createObject: function(component, object) { | |
var action = component.get("c.saveObject"); | |
action.setParams({ | |
"object": object | |
}); | |
action.setCallback(this, function(response){ |
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
({ | |
fireEvent: function(component, event, helper) { | |
var object = component.get("v.object"); | |
var event = component.getEvent("eventName"); | |
event.setParams({ "object": object }); | |
event.fire(); | |
} | |
}) |
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
/** | |
* Class description | |
* | |
* @author Tommaso Bolis | |
* @version 1.0 | |
* @description Class description | |
* @testedIn ClassNameTest | |
* @uses Class1, Class2 | |
* @code | |
* @history |
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
Show hidden characters
{ | |
"replacements": { | |
"remove_empty_lines": { | |
"find": "^\\s*\n", | |
"replace": "", | |
"greedy": true, | |
"case": false | |
}, | |
"add_empty_line_after_open_curly_bracket": { | |
"find": "\\{\n", |
OlderNewer