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
/* | |
Description : | |
*/ | |
trigger triggerOnSobject on sObject(before insert, after insert, before update, after update, before delete, after delete, after undelete) { | |
if (Trigger.isInsert) { | |
if (Trigger.isBefore) { | |
sObjectTriggerUtil.sObjectBeforeInsert(trigger.new); | |
} | |
if (Trigger.isAfter) { | |
sObjectTriggerUtil.sObjectAfterInsert(trigger.new); |
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 vfc_pieSeries{ | |
public vfc_pieSeries(){ | |
} | |
public List<PieWedgeData> getPieData() { | |
List<PieWedgeData> data = new List<PieWedgeData>(); | |
List<AggregateResult> opps = [SELECT SUM(Amount) monthlyRevenue, COUNT(Name) numOppsClosedWon, | |
CALENDAR_MONTH(CloseDate) theMonth |
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 vfc_apexbarSeries { | |
public List<AggregateResult> getData() { | |
return | |
[SELECT SUM(Amount) monthlyRevenue, COUNT(Name) numOppsClosedWon, | |
CALENDAR_MONTH(CloseDate) theMonth | |
FROM Opportunity | |
WHERE stageName = 'Closed Won' AND CALENDAR_YEAR(CloseDate) = 2011 | |
GROUP BY CALENDAR_MONTH(CloseDate) | |
ORDER BY CALENDAR_MONTH(CloseDate)]; | |
} |
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 vfc_areaSeries { | |
public vfc_areaSeries(){ | |
} | |
public List<Data> getData(){ | |
List<Data> data = new List<Data>(); | |
data.add(new Data('Jan', 30, 90, 55)); |
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="vfc_apexbarSeries" showHeader="false" readOnly="true"> | |
<apex:chart width="600" height="275" data="{!data}"> | |
<apex:axis type="Numeric" position="right" fields="monthlyRevenue" title="Revenue (US$)"> | |
<apex:chartLabel rotate="60"/> | |
</apex:axis> | |
<apex:axis type="Category" position="bottom" fields="theMonth" title="2011"> | |
</apex:axis> | |
<apex:barSeries title="Monthly Sales" orientation="vertical" axis="right" xField="theMonth" yField="monthlyRevenue"/> | |
</apex:chart> | |
</apex:page> |
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="vfc_apexbarSeries" showHeader="false" readOnly="true"> | |
<apex:chart width="600" height="275" data="{!data}"> | |
<apex:axis type="Numeric" position="right" fields="monthlyRevenue" title="Revenue (US$)"> | |
<apex:chartLabel rotate="60"/> | |
</apex:axis> | |
<apex:axis type="Category" position="bottom" fields="theMonth" title="2011"> | |
</apex:axis> | |
<apex:barSeries title="Monthly Sales" orientation="vertical" axis="right" xField="theMonth" yField="monthlyRevenue"> | |
<apex:chartTips height="20" width="120"/> | |
</apex:barSeries> |
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
<!-- Page: --> | |
<apex:page standardController="Account" showHeader="false" sidebar="false" id="pg"> | |
<apex:form id="frm"> | |
<apex:pageBlock title="My Content" mode="edit" > | |
<apex:commandLink action="{!save}" value="Save" id="theCommandLink" style="margin:auto; text-align:center; display:block;"/> | |
<apex:pageBlockSection title="My Content Section" columns="2"> | |
<apex:inputField value="{!account.name}"/> | |
<apex:inputField value="{!account.site}"/> | |
<apex:inputField value="{!account.type}"/> | |
<apex:inputField value="{!account.accountNumber}"/> |
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
<!-- Page: --> | |
<apex:page sidebar="false" showHeader="false"> | |
<c:apexAttribute_component myValue="My component's value" borderColor="red" borderStyle="dotted"/> | |
</apex:page> |
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
<!-- Component:myComponent --> | |
<apex:component > | |
<apex:attribute name="myValue" description="This is the value for the component." type="String" required="true"/> | |
<apex:attribute name="borderColor" description="This is color for the border." type="String" required="true"/> | |
<apex:attribute name="borderStyle" description="This is style of border ." type="String" required="true"/> | |
<h1 style="border-color:{!borderColor}; border-style: {!borderStyle}"> | |
<apex:outputText value="{!myValue}"/> | |
</h1> |
OlderNewer