Skip to content

Instantly share code, notes, and snippets.

@rupton
Created May 21, 2013 20:09
Show Gist options
  • Save rupton/5622816 to your computer and use it in GitHub Desktop.
Save rupton/5622816 to your computer and use it in GitHub Desktop.
This is the main AccountList Page shown in DC Elevate to export Accounts to CSV File
<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:inputField value="{!account.annualrevenue}"/>
</apex:column>
<apex:column >
<apex:commandButton action="{!quicksave}" value="Update Account"/>
</apex:column>
</apex:pageBlockTable>
<apex:commandButton action="{!URLFor($Action.Account.New)}" value="Create New Account"/>
<apex:outputLink value="{! $Page.AccountListExampleCSV}">Export to Excel</apex:outputLink>
</apex:pageBlock>
</apex:form>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment