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
<apex:page standardController="Account" extensions="ChildAccountsContactsController"> | |
<apex:pageblock> | |
<apex:pageBlockSection title="All Contacs including child Accounts" columns="1"> | |
<apex:pageBlockTable value="{!allContactNames}" var="con"> | |
<apex:column value="{!con.Name}" headerValue="Contact Name"/> | |
<apex:column value="{!con.Account.Name}" headerValue="Contact's Account Name"/> | |
<apex:column value="{!con.Account.Parent.Name}" headerValue="Contact's Parent Account Name"/> | |
</apex:pageBlockTable> | |
</apex:pageBlockSection> | |
</apex:pageblock> |
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
<apex:page controller="cls_ImageCropper" id="pg" showHeader="false" > | |
<head> | |
<meta http-equiv='cache-control' content='no-cache'/> | |
<meta http-equiv='expires' content='0'/> | |
<meta http-equiv='pragma' content='no-cache'/> | |
</head> | |
<body> | |
<style> | |
.btn_active{ |
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 class ClsSendEmailByTemplate{ | |
public string EmailTempateId{get;set;} | |
public EmailTemplate ET{get;set;} | |
public string emailVal{get;set;} | |
public string cc{get;set;} | |
public string emailSubject{get;set;} | |
public string body{get;set;} | |
public User usr{get;set;} | |
public ClsSendEmailByTemplate(){ |
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
<apex:page standardController="Account" sidebar="false"> | |
<apex:form> | |
<apex:pageBlock> | |
<apex:pageBlockSection> | |
<apex:outputField value="{!Account.Name}"/> | |
<apex:pageBlockSectionItem> | |
<apex:outputLabel value="Description"/> | |
<apex:outputPanel> | |
<div class="showmorefirm"> | |
<div class="moreblockfirm" id="Des" > |
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
<apex:page standardController="Position__c" id="Page"> | |
<script> | |
var Sec_Colors = ["#56DEF0", "#ED55D6", "#ACE3BC"]; // put hash code of color here according to number of section. | |
window.onload = function(){ | |
var Sections = document.getElementsByClassName('pbSubheader brandTertiaryBgr tertiaryPalette'); | |
for(var i = 0; i < Sections.length; i++){ | |
Sections[i].style.backgroundColor = Sec_Colors[i]; |
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
<apex:page Controller="RequiredFieldController" tabStyle="Account"> | |
<apex:form> | |
<apex:pageblock title="Required Example"> | |
<apex:pageblocksection> | |
<!-- Standard required attribute of inputfield --> | |
<apex:inputField value="{!acc.Name}" required="true"/> | |
<!-- Required field using controller --> | |
<apex:pageBlockSectionItem > | |
<apex:outputLabel value="Website"/> |
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
<apex:page controller="ReadXMLController"> | |
<apex:form> | |
<apex:pageblock title="Read XML" id="PB"> | |
<!-- inputFile for uploading XML --> | |
<apex:pageblocksection > | |
<apex:pageblocksectionitem> | |
<apex:outputLabel value="Please Select XML File:"/> | |
<apex:inputFile value="{!XMLBody}"> </apex:inputFile> | |
</apex:pageblocksectionitem> | |
</apex:pageblocksection> |
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
<apex:page id="Page" sidebar="false"> | |
<script src="/soap/ajax/20.0/connection.js" type="text/javascript"></script> | |
<script> | |
function insertAccount(){ | |
// Getting Session ID. | |
sforce.connection.sessionId = "{!$Api.Session_ID}"; | |
//Creating New Account Record. | |
var account = new sforce.SObject("Account"); | |
//Getting Account Name from inputText. |
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
<apex:page StandardController="Account" extensions="AccountHierarchyChartController" sidebar="false" showHeader="false"> | |
<script type='text/javascript' src='https://www.google.com/jsapi'></script> | |
<script type='text/javascript'> | |
google.load('visualization', '1', {packages:['orgchart']}); | |
google.setOnLoadCallback(drawChart); | |
function drawChart() { | |
var data = new google.visualization.DataTable(); | |
data.addColumn('string', 'Name'); | |
data.addColumn('string', 'Manager'); |
NewerOlder