You need to sign in to do that
Don't have an account?
Vinay 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..
Thanks In Advance..
<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>
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?