Skip to content

Instantly share code, notes, and snippets.

@sankaran1984
Created February 22, 2017 19:33
Show Gist options
  • Save sankaran1984/2c785cfc917fa05ede23b3504e450d92 to your computer and use it in GitHub Desktop.
Save sankaran1984/2c785cfc917fa05ede23b3504e450d92 to your computer and use it in GitHub Desktop.
Visualforce and beyond basics
<apex:page controller="testclass6_22022017">
<apex:sectionHeader title="Extend the Standard Opportunity Object"/>
<!-- Show Opportunty Standard Fields -->
<apex:sectionHeader subtitle="Standard Fields"/>
<apex:outputPanel layout="block">
<apex:outputLabel value="Name - "/>
<apex:outputText value="{!oppWrapObj.opp.Name}"/>
</apex:outputPanel>
<apex:outputPanel layout="block">
<apex:outputLabel value="StageName - "/>
<apex:outputText value="{!oppWrapObj.opp.StageName}"/>
</apex:outputPanel>
<!-- Show Opportunty Extended Fields -->
<apex:sectionHeader subtitle="Extended Fields"/>
<apex:outputPanel layout="block">
<apex:outputLabel value="Generic Name - "/>
<apex:outputText value="{!oppWrapObj.genericName}"/>
</apex:outputPanel>
<apex:outputPanel layout="block">
<apex:outputLabel value="Open Date - "/>
<apex:outputText value="{!oppWrapObj.openDate}"/>
</apex:outputPanel>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment