Skip to content

Instantly share code, notes, and snippets.

@magnet88jp
Created November 20, 2014 05:21
Show Gist options
  • Select an option

  • Save magnet88jp/5073d3fe09662e38c98a to your computer and use it in GitHub Desktop.

Select an option

Save magnet88jp/5073d3fe09662e38c98a to your computer and use it in GitHub Desktop.
input fiels 表示サンプル
<apex:page StandardController="NewFuncCheck__c" extensions="GrmNfcTrial1Ctrl">
<h1>リッチテキストエリア</h1>
<apex:form>
<!-- オブジェクト名から直接 inputFieldを表示可能(ただしデータは保存できない) -->
<apex:inputField value="{!NewFuncCheck__c['RichText__c']}" />
<!-- 変数を経由することによってデータの取得が可能 -->
<apex:inputField value="{!nfc['RichText__c']}" />
<!-- 複数項目を出力する場合は、項目セットを使用 -->
<apex:repeat value="{!$ObjectType.NewFuncCheck__c.FieldSets.NFC_SET1}" var="s">
<apex:inputField value="{!nfc[s]}"/>
</apex:repeat>
</apex:form>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment