function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kenichi MatsudaKenichi Matsuda 

standardController="Opportunity"とした時にinputFieldでAccountの項目を更新したい

お世話になります。

商談ページから取引先や商談の項目を任意の順番で一覧出来るVisualforceページをつくり、カスタムボタンで開いています。
保存ボタンを押すと一応保存されたような動作はするのですが、Account.Buildyear__cの項目が更新されていません。
値の取得は出来ているだけに、inputfieldで値も渡せそうなのですが難しいでしょうか?
どなたかお知恵をお願いいたします!

<apex:page standardController="Opportunity" sidebar="false" showHeader="false" docType="html-5.0">
  <apex:form >
    <apex:pageBlock>
      <apex:pageBlockButtons >
        <apex:commandButton value=" 保存 " onclick="saveInfo();refresh();" reRender="form"/>
        <apex:actionFunction name="saveInfo" action="{!save}" rerender="out" status="myStatus"/>
      </apex:pageBlockButtons>

      <apex:pageBlockSection>
        <apex:outputField value="{!Opportunity.Name}"/>
        <apex:outputField value="{!Opportunity.Type}"/>
        <apex:outputField value="{!Opportunity.Account.Name}"/>
        <apex:outputField value="{!Opportunity.Account.BillingState}"/>
        <apex:outputField value="{!Opportunity.Account.BillingCity}"/>
        <apex:outputField value="{!Opportunity.Account.BillingStreet}"/>
<!-- この商談から取引先のカスタム項目をinputフィールドで更新、保存しても反映しない-->
        <apex:inputField value="{!Opportunity.Account.BuildYear__c}"/>
      </apex:pageBlockSection>
    </apex:pageBlock>
  </apex:form>
</apex:page>