This gist contains multiple files. Each file contains a specific type of Apex or Visualforce comment header.
When code is no longer used, but can not be deleted from your org, add the @deprecated
annotation to the File or Method Header.
//PUBLISHER | |
var j$ = jQuery.noConflict(); | |
Sfdc.canvas(function(){ | |
alert("Page loaded, libraries ready"); | |
console.log("Page loaded, libraries ready"); | |
//set up message publisher event handler | |
j$("#btnSend").click(function(){ | |
var message = j$("#msgbox").val(); |
<apex:page standardController="Account" recordSetVar="accounts"> | |
<apex:form > | |
<apex:pageBlock > | |
<apex:pageBlockTable value="{!accounts}" var="account"> | |
<apex:column > | |
<apex:facet name="Header">Account Name:</apex:facet> | |
<apex:outputField value="{!account.Name}"/> | |
</apex:column> | |
<apex:column > | |
<apex:facet name="Header">Annual Revenue:</apex:facet> |
<apex:page standardController="Account" recordSetVar="accounts" contentType="text/csv#accountlist.csv" sidebar="false" showHeader="false"> | |
Account Name, Annual Revenue | |
<apex:repeat value="{!accounts}" var="account"> | |
{!account.Name},{!account.annualrevenue} | |
</apex:repeat> | |
</apex:page> |
public class ObjectHelper{ | |
public static boolean compareTypes(SObject compare, String checkType){ | |
try{ | |
Schema.SObjectType targetType = Schema.getGlobalDescribe().get(checkType); | |
if(targetType == null){ | |
return false; | |
}else if( compare.getSObjectType() == targetType){ | |
return true; | |
} | |
}catch(Exception e){ |
public class ObjectHelper{ | |
public static boolean compare(SObject compare, String checkType){ | |
try{ | |
Schema.SObjectType targetType = Schema.getGlobalDescribe().get(checkType); | |
if(targetType == null){ | |
return false; | |
}else if( compare.getSObjectType() == targetType){ | |
return true; | |
}else{ | |
return false; |
<apex:page standardController="Account" cache="true" recordSetVar="accounts" showheader="false" sidebar="false" contentType="text/csv#annualrevenue.csv"> | |
<apex:repeat value="{!accounts}" var="account"> | |
{!account.Name},{!account.AnnualRevenue}, | |
</apex:repeat> | |
</apex:page> |
<apex:page standardController="Account" recordSetVar="accounts" renderAs="PDF"> | |
<apex:form > | |
<apex:pageBlock > | |
<apex:pageBlockTable value="{!accounts}" var="account"> | |
<apex:column > | |
<apex:facet name="Header">Account Name:</apex:facet> | |
<apex:inputField value="{!account.Name}"/> | |
</apex:column> | |
<apex:column > | |
<apex:facet name="Header">Annual Revenue:</apex:facet> |
<apex:page standardController="Account" recordSetVar="accounts"> | |
<apex:form > | |
<apex:pageBlock > | |
<apex:pageBlockTable value="{!accounts}" var="account"> | |
<apex:column > | |
<apex:facet name="Header">Account Name:</apex:facet> | |
<apex:inputField value="{!account.Name}"/> | |
</apex:column> | |
<apex:column > | |
<apex:facet name="Header">Annual Revenue:</apex:facet> |
This gist contains multiple files. Each file contains a specific type of Apex or Visualforce comment header.
When code is no longer used, but can not be deleted from your org, add the @deprecated
annotation to the File or Method Header.
This gist contains multiple files. Each file contains a specific type of Apex or Visualforce comment header.
When code is no longer used, but can not be deleted from your org, add the @deprecated
annotation to the File or Method Header.