You need to sign in to do that
Don't have an account?
Inline Editing for Lookup on VF page
Hi,
I have inline editing to one of the fields (lookup field to Contact) of a Custom object in my VF page.
When i double click the field, enter a value and hit save it is saving a null value. It works sometimes but not always.
I can't figure out why the inconsistency.
Please suggest. Following is my code.
<td > <apex:outputField value="{!fl.EventInfo.Facilitator_1__c}"> <apex:inlineEditSupport event="ondblClick" showOnEdit="saveButton"/> </apex:outputField> <apex:outputField value="{!fl.SessionInfo.Facilitator1__c}"> <apex:inlineEditSupport event="ondblClick" showOnEdit="saveButton"/> </apex:outputField> </td>
EventInfo and SessionInfo are my wrapper classes. Facilitator_1__c and Facilitator1__c are lookup to contact.
Hello,
Thanks Deepabali
However it shows the input field on the page. I want that to appear only on double clicking. Can you please suggest something?
Hi madhura
I think you are displaying these filed inside Pageblock table or data table of wrapper class list.So you need to add a check box inside that table to select particular record in which you want to edit by inline editing support,
Here is some code for your reference
Here is the Controller
Let me know if it works
If ths post solves your problem then please mark it as solutions so that others get benifited, If this post really helps you then hit kudos icon .
Thanks