Editor gives error if your database table has no id column
Editor gives error if your database table has no id column
zapata
Posts: 13Questions: 5Answers: 1
Editor gives error if your database table has no "id" column. Some tables has column like "cityid" instead of "id" (cityid is unique)
if it is like that; Editor gives issue.
This discussion has been closed.
Answers
How about some real details? For debugging?..
DataTables warning: table id=b_hareket_table - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list
Unknown column 'id' ??? I cant see any "id" in my codes
Client Side:
Server Side
getFromEditorResults.php:
Hi,
You can use the optional third parameter in the
Editor
constructor to tell Editor what the primary key column name is - e.g.:This is noted in the basic initialisation documentation but it isn't as obvious as it should be. I'll improve that!
Thanks,
Allan