Data Source: Access Database

Data Source: Access Database

majag001majag001 Posts: 2Questions: 1Answers: 0

Hi Guys, I'm still very new to programming, just making my first steps with datatables. I have the tables stored locally (js / css / html) and now want to use an access database as a data source, is this possible, if so: what do I have to write in the java script file, and what in the html file? So far I have not reached the goal :(

Thank you so much for helping in advance
Have a good evening and take care
majag

Answers

  • majag001majag001 Posts: 2Questions: 1Answers: 0

    Hi guys,

    a found that code for displaying a local csv into my data table, but I get no results. The csv file is located in the same directory.

    $(function() {
    Papa.parse("Datatables/projektliste.csv", {
    download: true,
    complete: function(example) {
    console.log(example.data)
    $(document).ready(function () {
    $('#example').DataTable({
    data: example.data,
    dataSrc:"",
    columns: [
    {title: "id"},
    {title: "first_name"},
    ]
    });
    });
    }
    });
    });

    Any ideas regarding my issue?
    Thanks
    majag

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    There's a good example of doing just that in this thread,

    Colin

This discussion has been closed.