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
_ |
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 > | |
<apex:pageBlock title="Small Messages"> | |
<apex:pageMessage summary="This is a warning" severity="confirm" strength="1" /> | |
<apex:pageMessage summary="This is a piece of information" severity="info" strength="1" /> | |
<apex:pageMessage summary="This is a warning" severity="warning" strength="1" /> | |
<apex:pageMessage summary="This is an error" severity="error" strength="1" /> | |
<apex:pageMessage summary="This is a fatal message" severity="fatal" strength="1" /> | |
</apex:pageBlock> | |
<apex:pageBlock title="Medium Messages"> | |
<apex:pageMessage summary="This is a warning" severity="confirm" strength="2" /> |
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:pageMessage summary="Now click on Display options button to select custom setting." severity="warning" strength="3" rendered="{!DisplayMsgFlag}"/> |
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
--declare a table where the parsed values can be stored | |
DECLARE @ParsedStringTable TABLE | |
( | |
--set a column named "Source" | |
Source varchar(20) | |
) | |
INSERT INTO @ParsedStringTable | |
-- pass delimited string and delimter into function (CKI+FEE+IHS, '+') |
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
//for loop to find Opportunity Stages that are Closed and Won | |
for(OpportunityStage oppstage : oppstages){ | |
if(oppstage.IsClosed == True && oppstage.IsWon == True){ | |
wonstages.add(oppstage.MasterLabel); | |
} | |
} | |
Integer currentFY; | |
Integer currentFYMonth; | |
Integer CurrentFYDays; | |
Date today; |
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
@isTest | |
private class UpdateLeaveRequestTEST { | |
static testMethod void validateUpdateLeaveRequest() { | |
Leave_Request__c LR = new Leave_Request__c(); | |
System.debug('Manager before insert'+ LR.Manager__c); | |
// Insert Time Sheet | |
insert LR; | |
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
@isTest | |
//class name | |
private class vacationdaysTEST{ | |
//test method | |
private static testMethod void vacationdaysTEST(){ | |
//instantiate the object on which the extension is defined. | |
Leave_Request__c lr = new Leave_Request__c(); | |
//instantiate standardcontroller, pass object variable into constructor | |
ApexPages.StandardController sc = new ApexPages.StandardController(lr); | |
//instantiate extension controller, pass standard controller variable into constructor |
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="Leave_Request__c" extensions="vacationdays" showHeader="true" sidebar="true"> | |
<apex:form > | |
<apex:sectionHeader subtitle="New Leave Request" title="Leave Request Edit"/> | |
<apex:pageBlock title="Leave Request Edit" mode="edit" > | |
<apex:pageBlockButtons > | |
<apex:commandButton value="Save" action="{!save}"/> | |
<apex:commandButton value="Cancel" action="{!cancel}"/> | |
</apex:pageBlockButtons> | |
<apex:pageBlockSection title="Information" > | |
<apex:outputField label="Owner" value="{!UserInfo.Name}"/> |
NewerOlder