You need to sign in to do that
Don't have an account?
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:pageBlockButtons>
<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:repeat>
</apex:pageBlockSection>
<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]}"/>
</apex:repeat>
</apex:repeat>
</apex:pageBlockSection>
</apex:pageBlock>
Inline editing only works on fields on the primary object. This is consistent with the way inline editing works on standard layouts.