Skip to content

Instantly share code, notes, and snippets.

@sankaran1984
Created December 6, 2016 13:48
Show Gist options
  • Save sankaran1984/20a37d88b828cd0b37947ae1bf295eab to your computer and use it in GitHub Desktop.
Save sankaran1984/20a37d88b828cd0b37947ae1bf295eab to your computer and use it in GitHub Desktop.
Visualforce - Beyond Basics
<apex:page standardController="Opportunity">
What would you like to do with this Opportunity - {!Opportunity.Name}
<apex:panelGrid columns="1">
<!-- create -->
<apex:outputLink value="{!URLFOR($Action.Opportunity.New)}">Create New</apex:outputLink>
<!-- view -->
<apex:outputLink value="{!URLFOR($Action.Opportunity.View, Opportunity.Id)}">View</apex:outputLink>
<!-- edit -->
<apex:outputLink value="{!URLFOR($Action.Opportunity.Edit, Opportunity.Id)}">Edit</apex:outputLink>
<!-- delete -->
<apex:outputLink value="{!URLFOR($Action.Opportunity.Delete, Opportunity.Id)}">Delete</apex:outputLink>
</apex:panelGrid>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment