You need to sign in to do that
Don't have an account?
KVaishna
Inline edit for multiple records
Hi,
I have custom list which I am displaying in VF inside page block. I have enabled inline editing so that users can edit any record in the list and save the changes.
But any changes to only last record in the list are getting saved. Inline changes to any other record in the list are not getting saved.
I tried both the following options for inline editing...
<apex:pageBlock mode="inlineEdit">
<apex:inlineEditingSupport>
component
Is this the expected behavior? Is there any solution/workaround to this?
Thanks & Regards,
-Kunjan
Hi,
I have an approach for your requirement. Try this example which related to Contact object.
Visualforce page
Controller
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
try
Page:
Class:
Hi Chamil,
Thanks for the code. Let me look how can I make changes in my code using this.
I want to achieve it with inlineEditsupport on double click of the page. similar to standard Salesforce view with inline editing.
Thanks,
-Kunjan
Thanks for the code Sonali.
Yes outputfield works when I use it with pageblock mode='inlineEdit'. using <apex:inlineEditSupport/> throws me some javascript errors may be due to integration with other custom components.
Not sure why it does not work with apex:column.
I am using lot of custom components for pagination, sorting and other functionalities so I will have to check how this will impact the overall integration with other components.
Thanks,
-Kunjan
Hi Kunjan,,
Then Try this example from my blog.
http://salesforceworld.blogspot.com/2011/06/inline-editing-in-visualforce-page.html
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
Thanks for the code Chamil.
I am not sure what is significance of <apex:inlineEditSupport event="ondblclick"/> because inline editing is enabled using <apex:pageBlock id="subPageBlock" mode="inlineEdit"> so why do we need <apex:inlineEditSupport event="ondblclick"/> tag at all..
I am also looking at way to have dependent picklists and lock certain fields from inline editing. I thought with using <apex:inlineEditSupport event="ondblclick"/> you can enable inline edit only on certain field and not on entire block but that's not the case..!!
Thanks & Regards,
-Kunjan
Hi Kunjan,
Yeah without <apex:inlineEditSupport event="ondblclick"/>, it works properly. I'll check on it. Was my post healpful for you?
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
Chamil's Blog
Hi,
Here some details about inlineedit support
http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#StartTopic=Content/pages_quick_start_inline_editing.htm#kanchor123
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
Chamil's Blog
Hi Chamil,
Yes your blog was useful. Thanks for link as well.
Basically I will have to use mix of OutputField, OutputText to get what I am looking for..
Thanks again.
-Kunjan