webismymind / editablegrid

EditableGrid is an open source Javascript library aimed at turning HTML tables into advanced editable components. It focuses on simplicity: only a few lines of code are required to get your first table up and running.
http://www.editablegrid.net
Other
796 stars 271 forks source link

Modifying the Editablegrid mysql example #164

Open discreditable opened 7 years ago

discreditable commented 7 years ago

I adapted the editablegrid mysql example to create my own datagrid.

The grid selects from a mysql VIEW but, because of some aggregation, instead updates one of the VIEW's underlying TABLES. This bit works fine.

However, when I come to add a new row, something's not working, and the 'error' display is returned.

I can see that the query executes (the first time) because a new row is created in my table, but neither of the two form values provided are inserted. Regardless of what's submitted, it simply inserts a 0 and a blank value. I think I've updated all relevant files (including the demo.js file), but clearly I've forgotten something. I'm happy to provide code, but I wasn't sure what to provide (I'm not very familiar with GitHub - sorry)

discreditable commented 7 years ago

OK - I think it may have been as simple as a caching error