Editing data in Datatable using NodeJS

Good day ,
I have a small problem by configuring NodeJS to edit JSON file.
here is my nodeJS code http://webix.com/snippet/fe0e86b1
webix datatable : http://webix.com/snippet/3f89e5d8

I can’t figure out what i did wrong , so the table sends data via POST request and i search for webix_operation parameter and then start to change the file.

“Seite2” is the html page where the datatable is.

a) you have in code save: "Server/server.js", I think it must be save: "Seite2/", to trigger the related action on the server side

b) code of “update” actually adds a new record, but, as far as I can see, it is correct in other aspects, and must write data from client side to DB.json file.

c) try to use url: "JSON/DB.json?id="+webix.uid(), to prevent data caching on client side

i’m really sory for writing so late ( didn’t have my pc with me ).

Shouldn’t "save: " contain the name of the file where the update/insert/delete scripts are ? In my case the script with CRUD operations is in “server.js”

It is not the file name, but the HTTP URL. In the case of PHP name of a file and a local URL may be the same. In the case of node.js, those are different entities.

If you have server js like next

app.post("/saveMethod", my_saving_methods)

you can use save:"/saveMethod" in the client side config.

thank you!