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
Alejandro Gonzalez 18Alejandro Gonzalez 18 

How to accept the changes on an Inline Edit Support

My question is simple, on one panel I have a series of multi select, that when a button is clicked, it auto adds to a table underneath.

So the user makes his selection and clicks the add button.

The button add the product to the table via ajax, and rerenders it. so the new item shows, however, the multiselect still has, the values bolded and with the undo or reset arrow.

So how can i make the button also tell the edit inlnie to "comit" the changes?? I tried rerendering, but the multiselect popup becomes really wwack and it looks horrible, it seem slike the re render via ajax messes up the widths and the JS
 
<apex:commandButton 
					action="{!AddRecord}" rerender="ProductInformationDeatils"
					Value="Add" />


 
Alejandro Gonzalez 18Alejandro Gonzalez 18
I just noticed the same functionality of the Cancel button on the modal popup that shows up for the multiselect will also suffice.
The idea is to clear /reaset  the previous selection.