Skip to content

Instantly share code, notes, and snippets.

@mokamoto
Created August 25, 2013 19:30
Show Gist options
  • Save mokamoto/6335771 to your computer and use it in GitHub Desktop.
Save mokamoto/6335771 to your computer and use it in GitHub Desktop.
サンプルのStandard Set Controllerを利用した取引先のリスト表示を行うVisualforceページ
<apex:page standardController="Account" recordSetVar="accounts">
<apex:form>
<apex:pageBlock >
<apex:pageMessages />
<apex:pageBlockButtons>
<apex:commandButton value="保存" action="{!save}"/>
</apex:pageBlockButtons>
<apex:pageBlockTable value="{!accounts}" var="a">
<apex:column headerValue="名前">
<apex:outputLink value="/{!a.Id}"><apex:outputField value="{!a.Name}"/></apex:outputLink>
</apex:column>
<apex:column value="{!a.Description}"/>
<apex:column headerValue="電話番号">
<apex:inputField value="{!a.Phone}"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment