I've been searching for a simple example but I think those that I've found were too big or didn't answer my question on its main point so here it goes.
My question is if it's possible to inline edit field(s), which are listed through columns. My problem is how to find the Id of the field which was double-clicked, since, for example, I am viewing a record of an object of type A. In the view of type A, I'm listing records from both B and C type records. From what I've been able to implement, I'm only able to edit the rows from the type A object because that's the only Id parameter I've been able to fetch.
Is it possible to inline edit rows from type B and C objects on a view from type A object?
Best Regards
<apex:form >
<apex:pageBlock mode="maindetail">
<apex:pageBlockButtons >
<apex:commandButton action="{!edit}" id="editButton" value="Edit" />
<apex:commandButton action="{!save}" id="saveButton" value="Save" />
<apex:commandButton onclick="resetInlineEdit()" id="cancelButton"
value="Cancel" />
</apex:pageBlockButtons>
<apex:pageBlockSection >
<apex:pageBlockTable value="{!selectValueFromCustomObject}" var="item"
<apex:column headerValue="Name" value="{!item.Name__c}"/>
</apex:pageBlockTable>
<apex:inlineEditSupport showOnEdit="saveButton, cancelButton"
hideOnEdit="editButton" event="ondblclick"
resetFunction="resetInlineEdit" />
</apex:pageBlockSection>
</apex:pageBlock>