Jessima / jquery-datatables-editable

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

<TR ID=??> Not populating from AJAX/JSON #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When inspecting (using FireBug) the example at:

http://jquery-datatables-editable.googlecode.com/svn/trunk/ajax.html

The table key fields aren't populated via JSON. Is this a bug, or am I just 
unable to find the documentation on how to structure the JSON so the table rows 
get ID values that correspond with the database key fields?

Original issue reported on code.google.com by otheracc...@zivan.com on 20 May 2011 at 3:37

GoogleCodeExporter commented 8 years ago
It is more accurate to say that the row IDs are populating, but they are just 
taking the browser engine field as if "Geko" were a database key field. If I 
were to delete from the database using this value, many rows would be deleted, 
since it isn't a key field.

Original comment by otheracc...@zivan.com on 20 May 2011 at 3:42

GoogleCodeExporter commented 8 years ago
You are right. I have changed original ajax source so now we have id in the 
first column. In the example is placed description where it is stated that a 
first column is used as an id.

Original comment by joc...@gmail.com on 28 May 2011 at 2:05

GoogleCodeExporter commented 8 years ago
Updated documentationI'm closing this issue.

Original comment by joc...@gmail.com on 1 Jun 2011 at 4:58