Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*********************************************************************************************/
- <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 >
- <apex:commandButton action="{! save }" value="Save" />
- </apex:pageBlockButtons>
- </apex:pageBlock>
- </apex:form>
- </apex:page>
- /*********************************************************************************************/
- <apex:page standardController="Opportunity" >
- <apex:pageBlock >
- <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>
- /*********************************************************************************************/
- <apex:page standardController="Contact">
- <apex:pageBlock title="Contact Summary">
- <apex:pageBlockSection >
- First Name: {! Contact.FirstName } <br/>
- Last Name: {! Contact.LastName } <br/>
- Owners Email: {! Contact.Owner.Email } <br/>
- </apex:pageBlockSection>
- </apex:pageBlock>
- </apex:page>
- /*********************************************************************************************/
- <apex:page >
- <p>The year today is {! YEAR(TODAY()) }</p>
- <p>Tomorrow will be day number {! DAY(TODAY() + 1) }</p>
- <p>Lets find a maximum: {! MAX(1,2,3,4,5,6,5,4,3,2,1) } </p>
- <p>The square root of 49 is {! SQRT(49) }</p>
- <p>Is it true? {! CONTAINS('salesforce.com', 'force.com') }</p>
- <p>{! IF( CONTAINS('salesforce.com','force.com'),
- 'Yep', 'Nope') }</p>
- <p>{! IF( DAY(TODAY()) < 15,
- 'Before the 15th', 'The 15th or after') }</p>
- <apex:pageBlock title="User Status">
- <apex:pageBlockSection columns="1">
- {!$User.FirstName} {!$User.LastName} ({!$User.Username})
- </apex:pageBlockSection>
- </apex:pageBlock>
- </apex:page>
- /*********************************************************************************************/
- <apex:page showHeader="false">
- <apex:image id="theImage" value="https://developer.salesforce.com/files/salesforce-developer-network-logo.png" width="220" height="55"/>
- </apex:page>
- /*********************************************************************************************/
- <apex:page controller="NewCaseListController">
- <apex:pageBlock title="New Case List" id="cases_list">
- <apex:repeat var="case" value="{!NewCases}">
- <apex:outputLink value="/{! case.id}">
- ID: {! case.id }
- </apex:outputLink><br/>
- <apex:outputLink value="/{! case.id}">
- Case Number: {! case.CaseNumber }
- </apex:outputLink><br/>
- </apex:repeat>
- </apex:pageBlock>
- </apex:page>
- /*********************************************************************************************/
- //Need to upload an image on static reference in salesforce
- <apex:page showHeader="false">
- <apex:image url="{!URLFOR($Resource.vfimagetest, 'cats/kitten1.jpg')}" />
- </apex:page>
- /*********************************************************************************************/
- <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>
- </apex:page>
- /*********************************************************************************************/
Add Comment
Please, Sign In to add comment