rupton
5/21/2013 - 8:09 PM

This is the main AccountList Page shown in DC Elevate to export Accounts to CSV File

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>