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
Vinay Reddy 7Vinay Reddy 7 

<apex:inlineeditsupport> isnot working or null values in a record displayed

In my VF-Page i am trying to enable inlineeditsupport for the data displayed in pageblocktable works fine iff data is present in all fields.. if a particular field is blank in a record then the inlineeditsupport doesn't allow to edit that empty/null field.. how to overcome this problem..
 
Thanks In Advance..
 
Panduranga GollaPanduranga Golla
It may help you ,use this way--

<apex:page standardController="Account" extensions="InlineEdExtension" > 
<apex:form > 
<apex:pageBlock > 
<apex:pageBlockButtons > 
<apex:commandButton value="Save" id="saveButton" action="{!myInlineEditSave}"/> 
<apex:commandButton value="Cancel" id="cancelButton" onclick="resetInlineEdit()"/> 
</apex:pageBlockButtons> 
<apex:pageBlockTable var="c" value="{!LineItems}"> 
<!-- <apex:column value="{!c.firstName}"/> --> 
<apex:column headerValue="LastName"> 
<apex:outputField value="{!c.lastName}"> 
<apex:inlineEditSupport event="ondblclick" showOnEdit="saveButton,cancelButton" /> 
</apex:outputField> 
</apex:column> 
<apex:column headerValue="Phone"> 
<apex:outputField value="{!c.phone}"> 
<apex:inlineEditSupport event="ondblclick" showOnEdit="saveButton,cancelButton" /> 
</apex:outputField> 
</apex:column> 
</apex:pageBlockTable> 
</apex:pageBlock> 
</apex:form> 
</apex:page>
Vinay Reddy 7Vinay Reddy 7
Thanks for replying,
I have implemented the same type of code but there was a problem with this code. Sometimes this code may work properly but at the sametime  it may not work in some cases. Is there any another solution for this?