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
Cory CowgillCory Cowgill 

Spring 11 Inline Editing - Related Lists

Does anyone know if you can use the new Spring 11 Visualforce Inline Editing functionality to inline edit a dataTable or relatedList?

 

I.E. I want to display a set of records in a dataTable or relatedList, and edit those items directly in the list view. Similar to how inline editing works in list views.

 

Anyone know if this is possible with standard VF Inline Editing released in Spring 11?

Ankit AroraAnkit Arora

Hi Cory,

 

Inline Edit is supported on :

 

<apex:dataList>

<apex:dataTable>

<apex:form>

<apex:outputField>

<apex:pageBlock>

<apex:pageBlockSection>

<apex:pageBlockTable>

<apex:repeat>

 

Sample Code :

 

 

<apex:page standardController="Contact">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockSection >

                <apex:outputField value="{!contact.lastname}">
                    <apex:inlineEditSupport />
                </apex:outputField>

                <apex:outputField value="{!contact.accountId}"/>
                <apex:outputField value="{!contact.phone}"/>

            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page