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
IF( DAY(Invoice_Date__c)<10,'0','' ) | |
& TEXT(DAY(Invoice_Date__c)) | |
&'/'& | |
IF( MONTH(Invoice_Date__c)<10,'0','' ) | |
& TEXT(MONTH(Invoice_Date__c)) | |
&'/'& | |
TEXT(YEAR(Invoice_Date__c)) |
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
@RemoteAction | |
public static map<String,map<String,String>> getValidationRule() { | |
map<String,map<String,String>> mapObjectValidationRule = new map<String,map<String,String>>(); | |
// get list of the validation rules associated with the object | |
String domainUrl = URL.getSalesforceBaseUrl().toExternalForm(); | |
HttpRequest req = new HttpRequest(); | |
req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionID()); | |
req.setHeader('Content-Type', 'application/json'); | |
req.setEndpoint(domainUrl+'/services/data/v36.0/tooling/query/?q=Select%20id%2CValidationName%2CActive%2CEntityDefinitionId%20From%20ValidationRule'); |
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
Requirement Analysis: | |
Proposed Solution: | |
Technical Solution: classes | |
Estimation: | |
Dev: | |
Test Methods | |
Dev Unit Test | |
Clarification: |
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 interface Organism { | |
} | |
public interface Part { | |
List<Limb> | |
} | |
public interface Limb { | |
//can be composed of Cells |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src="./jquery-1.11.3.js"></script> | |
</head> | |
<style type="text/css"> | |
.target{ | |
border: 5px groove black; | |
padding : 50px; |
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
String s = 'FirstName MiddleName LastName AnotherName'; | |
String[] arrayS = s.split(' ', 3); | |
System.debug ( 'First :- '+ getFirstName(arrayS) ); | |
System.debug ('Middle :-'+ getMiddleName(arrayS) ); | |
System.debug ('Last Name :-'+ getLastName(arrayS) ); | |
s = 'FirstName MiddleName LastName'; | |
arrayS = s.split(' ', 3); | |
System.debug ( 'First :- '+ getFirstName(arrayS) ); |
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
input[type=checkbox] { | |
opacity: 1; | |
float:left; | |
} | |
input[type=checkbox] { | |
margin: 0 0 0 20px; | |
position: relative; | |
cursor: pointer; | |
font-size: 16px; |
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 abstract class AccountTrigger { | |
public Account[] accountOldList { set; get; } | |
public Account[] accountNewList { set; get; } | |
public Map<Id, Account> accountOldListMap = new Map<Id, Account>(); | |
public Map<Id, Account> accountNewListMap = new Map<Id, Account>(); | |
public AccountTrigger(Account[] accountOldList, Account[] accountNewList) { | |
this.accountOldList = accountOldList == null ? new Account[] {} : accountOldList; | |
this.accountNewList = accountNewList == null ? new Account[] {} : accountNewList; |
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 final class ClientIpAddress { | |
// CHECKSTYLE:OFF | |
// http://stackoverflow.com/a/11327345/131929 | |
private static Pattern PRIVATE_ADDRESS_PATTERN = Pattern.compile( | |
"(^127\\.)|(^192\\.168\\.)|(^10\\.)|(^172\\.1[6-9]\\.)|(^172\\.2[0-9]\\.)|(^172\\.3[0-1]\\.)|(^::1$)|(^[fF][cCdD])", | |
Pattern.CANON_EQ); | |
// CHECKSTYLE:ON | |
private ClientIpAddress() { |
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="Opportunity" extensions="Pdf_of_Attachment_Extension" renderAs="pdf"> | |
<apex:pageBlock > | |
<apex:pageBlockSection columns="1" > | |
<apex:pageBlockSectionItem >Opportunity Name: {!Opportunity.Name} </apex:pageBlockSectionItem> | |
<apex:pageBlockSectionItem >CloseDate : {!Opportunity.CloseDate} </apex:pageBlockSectionItem> | |
<apex:pageBlockSectionItem >StageName : {!Opportunity.StageName} </apex:pageBlockSectionItem> | |
<apex:pageBlockSectionItem >Probability : {!Opportunity.Probability} </apex:pageBlockSectionItem> | |
</apex:pageBlockSection> | |
<apex:repeat var="attachment" value="{!attachments}"> | |
<apex:image url="/servlet/servlet.FileDownload?file={!attachment.Id}"/><br></br> |