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="Account" recordSetVar="Accounts"> | |
<apex:pageBlock> | |
<apex:repeat var="a" value="{!Accounts}" rendered="true" id="account_list"> | |
<li> | |
<apex:outputLink value="/{!a.ID}"> | |
<apex:outputText value="{!a.Name}"/> | |
</apex:outputLink> | |
</li> | |
</apex:repeat> | |
</apex:pageBlock> |
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="Contact"> | |
<apex:form> | |
<apex:pageBlock title="Add contacts"> | |
<apex:pageBlockSection columns="1"> | |
<apex:inputField value="{! Contact.FirstName}"/> | |
<apex:inputField value="{! Contact.LastName}"/> | |
<apex:inputField value="{! Contact.email}"/> | |
</apex:pageBlockSection> | |
<apex:pageBlockButtons> |
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:pageBlockSection columns="1"> | |
{! $User.FirstName} {! $User.LastName} {! $User.Username}) | |
</apex:pageBlockSection> | |
</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 showHeader="false" title="DisplayImage" sidebar="false"> | |
<apex:form> | |
<table> | |
<tr> | |
<td width="1000px" height="600px" align="center"> | |
<apex:image url="https://developer.salesforce.com/files/salesforce-developer-network-logo.png"/> | |
</td> | |
</tr> | |
</table> | |
</apex:form> |
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 NewCaseListController { | |
public List<Case> getNewCases(){ | |
List<Case> cases = [select id, CaseNumber from Case where status='New']; | |
return cases; | |
} | |
} |
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="NewCaseListController" > | |
<apex:pageBlock title="New Cases List" id="cases_list"> | |
<li> | |
<apex:repeat value="{!NewCases}" var="Case" rendered="true" > | |
<p><apex:outputLink value="/{!Case.ID}">{!Case.CaseNumber}</apex:outputLink></p> | |
</apex:repeat> | |
</li> | |
</apex:pageBlock> |
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:image url="{!URLFOR($Resource.vfimagetest, 'cats/kitten1.jpg')}" /> | |
</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 standardController="Account" recordSetVar="Accounts"> | |
<apex:pageBlock> | |
<apex:repeat var="a" value="{!Accounts}" rendered="true" id="account_list"> | |
<li> | |
<apex:outputLink value="/{!a.ID}"> | |
<apex:outputText value="{!a.Name}"/> | |
</apex:outputLink> | |
</li> | |
</apex:repeat> | |
</apex:pageBlock> |
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="Contact"> | |
<apex:form> | |
<apex:pageBlock title="Add contacts"> | |
<apex:pageBlockSection columns="1"> | |
<apex:inputField value="{! Contact.FirstName}"/> | |
<apex:inputField value="{! Contact.LastName}"/> | |
<apex:inputField value="{! Contact.email}"/> | |
</apex:pageBlockSection> | |
<apex:pageBlockButtons> |
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"> | |
<apex:pageBlock title="Opportunity Page"> | |
<apex:pageBlockSection> | |
<apex:outputField value="{! Opportunity.Name}"/> | |
<apex:outputField value="{! Opportunity.Amount}"/> | |
<apex:outputField value="{! Opportunity.CloseDate}"/> | |
<apex:outputField value="{! Opportunity.Account.Name}"/> | |
</apex:pageBlockSection> | |
</apex:pageBlock> | |
</apex:page> |