UPDATE (Write) to JSON following Column ADD

UPDATE (Write) to JSON following Column ADD

DKDemDKDem Posts: 4Questions: 2Answers: 0

Hello-
...a little embarrassed asking this, but I can't find a direct answer for this in the forum(s).
Leveraging HTML/JavaScript alone, I am Successfully reading in a <master> JSON file for display on my WebPage (works great).
At this point, what I am trying to do, is leverage "row.add" to add a row of data to the <master>JSON file.
Is this really possible? e.g to add a row Permanently (to master JSON file).

Thanks to everyone for always helping!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,160Questions: 1Answers: 10,406 Site admin
    Answer ✓

    Possible yes. But you'll need to do a bit of coding :). DataTables is a display library (with Editor adding database writing support) - it will not create a file on a remote server for you. You can use Buttons to do a client-side export of the data to Excel, CSV, JSON or any other format you want, but if you want to save the new row into a file on a server you'd need to send the new data to the server and have a script / program on it to update the file. That's normally where a database would come into play.

    Allan

  • DKDemDKDem Posts: 4Questions: 2Answers: 0

    Thanks for the quick response Allan, and understood....had to ask :).

    -Darren

This discussion has been closed.