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 void functionWithDML() { | |
try { | |
insert listOfStuff; | |
} catch(DMLException e1) { | |
// do nothing here, page messages are automatically generated | |
} catch(Exception e2) { | |
// uh-oh, something else happened bad, better show it to the user | |
ApexPages.addMessage( | |
new ApexPages.Message( | |
ApexPages.Severity.ERROR |
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:component > | |
<apex:attribute name="version" | |
type="String" | |
required="false" | |
description="Version of jquery. Defaults to 1.8.2. See https://developers.google.com/speed/libraries/devguide#jquery for a full list of available versions" | |
default="1.8.2"/> | |
<apex:attribute name="minified" | |
type="Boolean" | |
required="false" |
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
# /usr/bin/env copy | |
import http://andyinthecloud.com/2015/05/25/automating-org-setup-via-process-builder-and-metadata-api/ | |
# no rules rulez! |
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
# Eclipse Project Files | |
com.salesforce.ide.core.prefs | |
salesforce.schema | |
Referenced Packages | |
.project | |
# Maven’s Mate Generated Files | |
apex-scripts | |
config | |
debug |
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
# Eclipse Project Files | |
com.salesforce.ide.core.prefs | |
salesforce.schema | |
Referenced Packages | |
.project | |
# Maven’s Mate Generated Files | |
apex-scripts | |
config | |
debug |
NewerOlder