kenxran / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 0 forks source link

sValue for dblclick callback is empty #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Table provided to client with front controller servlet acting as 
Update/Delete/Add handler for connectivity to database
2. Double click to edit a cell, enter new value, hit enter.
3. Click OK on empty modal

What is the expected output? What do you see instead?
There is no error, and updates to data work as expected, however a modal popup 
occurs after hitting enter on data editing in a cell.  Firebug tracing confirms 
that the function callback is called (as defined in fnApplyEditable for the 
action dblclick) but the parameter sValue is empty, which would normally 
display in the popup when an error in editing occurs.

What version of the product are you using? On what operating system?
1. Datatables 1.8.2 + editable plug-in 1.3 + jquery 1.7.1 installed, Windows 7 
under NetBeans IDE 7.1 and Firefox

Please provide any additional information below.

Original issue reported on code.google.com by sara.lue...@gmail.com on 24 Jan 2012 at 12:55

GoogleCodeExporter commented 9 years ago
Incorrect edit handling results in this as it expects a return/response written 
object, though that is neither clear in documentation or in why its necessary.

Original comment by virtual...@gmail.com on 26 Jan 2012 at 9:01

GoogleCodeExporter commented 9 years ago
Hi,

Edit controller should return same value as the one that is sent as 
confirmation that update is successful. Any other value including the blank 
value will be considered as error message and error message will be shown in 
pop=up. 
See wiki page as example 
http://code.google.com/p/jquery-datatables-editable/wiki/EditCell or Java 
tutorial on code project 
http://www.codeproject.com/Articles/193068/Adding-data-management-CRUD-functiona
lities-to-the 

jovan

Original comment by joc...@gmail.com on 9 Feb 2012 at 8:52

GoogleCodeExporter commented 9 years ago
As there are no responses I'm losing this issue.

Jovan

Original comment by joc...@gmail.com on 13 Feb 2012 at 5:42