+ Start a Discussion

Is there a way to Inline Edit a contact record in the Account Standard Controller?

Hi,  The code below  uses the Standard Account Controll and allows me to do inline edit for the account fields however it does not work for the contact fields, not sure why, can anyone help?


 <apex:pageBlock >
                    <apex:inlineEditSupport event="ondblClick" showOnEdit="saveButton,cancelButton" hideOnEdit="updatewizardButton" />
                    <apex:pageBlockButtons >
                                  <apex:commandButton value="Save" action="{!quicksave}" id="saveButton" />
                        <apex:commandButton value="Cancel" action="{!cancel}" id="cancelButton" />
                        <apex:pageBlockSection columns="2" title="Account Information" >
                            <apex:repeat value="{!$ObjectType.Account.FieldSets.Con_Account_Company_Info}" var="f">
                                <apex:outputField value="{!Account[f]}"/>

                    <apex:pageBlockSection columns="2" title="Contact Information" >
                           <apex:repeat value="{!Account.Contacts}" var="c">
                              <apex:repeat value="{!$ObjectType.Contact.FieldSets.Con_Account_Contact_Info}" var="f">
                                          <apex:outputField rendered="{!c.Contact_Type__c ='Primary Contact'}" value="{!c[f]}"/>


Inline editing only works on fields on the primary object. This is consistent with the way inline editing works on standard layouts.