tyoshikawa1106のブログ

- Force.com Developer Blog -

2012-12-20から1日間の記事一覧

SFDC:<apex:commandButton> と <apex:param>

<apex:commandButton>でaction処理を実行するときに、 <apex:param>で引数を渡す方法についてです。 <apex:param>を使う場合はPage側で次のように書きます。 <apex:commandButton value="commandButtonから実行" action="{!doClick}" rerender="formId"> <apex:param name="parameter" value="commandButtonから実行"/> </apex:commandButton> apex:paramのvalueに指定した値が引数の値になります。 …</apex:param></apex:param></apex:commandbutton>