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
Madhura BMadhura B 

Inline editing inconsistent

Hi

I have a vf page with output fieldsdisplayed using a wrapper list. I have to provide inline editing on few output fields and I observed that it is inconsistent. If I inline edit more than one field in a row and select a checkbox (using checkbox as I have made use of wrapper class) on the first column of the row and hit save either of the inline edited fields will be updated and not both. Could someone please suggest me to resolve this issue?

 

Here's my code.

 

<table border="1" width="100%"  cellpadding="5" style="border-collapse:collapse;border:none;"> 
<tr>
     <th >
      <apex:inputCheckbox onclick="checkAll(this)"/>
     </th>
     
     <th > 
      <apex:commandLink rendered="{!NOT(both)}" action="{!ViewFacilitator}" value="Programme {!IF(sortExpression=='programme',IF(sortDirection=='ASC','▲','▼'),'')}" style="color:#009999;">
             <apex:param value="programme" name="column" assignTo="{!sortExpression}" ></apex:param>
             <apex:param value="{!if(eventType,'event','session')}" name="sortType" assignTo="{!sortType}" ></apex:param>
      </apex:commandLink>
     <apex:outPutText value="Programme" rendered="{!both}" style="color:#009999;"/>
     </th>
 
    <th >
    <apex:commandLink rendered="{!NOT(both)}"  action="{!ViewFacilitator}" value="Session Type {!IF(sortExpression=='stype',IF(sortDirection=='ASC','▲','▼'),'')}"  style="color:#009999;" >
             <apex:param value="stype" name="column" assignTo="{!sortExpression}" ></apex:param>
             <apex:param value="{!if(eventType,'event','session')}" name="sortType" assignTo="{!sortType}" ></apex:param>
     </apex:commandLink>
     <apex:outPutText value="Session Type" rendered="{!both}" style="color:#009999;" />
    <apex:image url="{!URLFOR($Resource.HelpIcon)}" title="This field can be inline edited."  />
    </th>
    
    <th>
    <apex:commandLink rendered="{!NOT(both)}"  action="{!ViewFacilitator}" style="color:#009999;">
             <apex:param value="role1" name="column" assignTo="{!sortExpression}" ></apex:param>
             <apex:param value="{!if(eventType,'event','session')}" name="sortType" assignTo="{!sortType}" ></apex:param>
      <font style="color:#009999;">Session<br/>Role {!IF(sortExpression=='role1',IF(sortDirection=='ASC','▲','▼'),'')}</font>
     </apex:commandLink>   
</tr>

<apex:repeat value="{!FinalList}" var="fl" rendered="{!NOT(ISNULL(FinalList))}" >
  <tr style="border-top:solid #009999;">
  <td>
    <apex:inputCheckbox value="{!fl.checked}" id="selectLine1" /> 
  </td>
  <td > 
    <apex:outputText value="Fellows" rendered="{!fl.EventInfo.Id!=''}"/>
    <apex:outputText value="Teams" rendered="{!fl.SessionInfo.Id!=''}"/>
  </td>
    
    <td >
    <apex:outputField value="{!fl.EventInfo.Session_Type__c}" >
      <apex:inlineEditSupport event="ondblClick" />
    </apex:outputField>
    <apex:outputField value="{!fl.SessionInfo.Session_Type__c}" >
      <apex:inlineEditSupport event="ondblClick"  />
    </apex:outputField>
    </td>
  
    <td>1F</td>
    <td >
     <apex:outputField value="{!fl.EventInfo.Role_1F__c}">
       <apex:inlineEditSupport event="ondblClick"  />
     </apex:outputField>
     <apex:outputField value="{!fl.SessionInfo.Role_1F__c}">
       <apex:inlineEditSupport event="ondblClick"  />
     </apex:outputField>
    </td>   
</tr> 
</apex:repeat>
</table>