Fill select field from sql server database

Fill select field from sql server database

ricardo.padilla@xpack.com.mxricardo.padilla@xpack.com.mx Posts: 2Questions: 2Answers: 0
edited June 2021 in Editor

I want to fill this field with the id value Customer (idCSR) and Customer fields (CSR),I will appreciate your help.

$(document).ready(function() {
    editor = new $.fn.dataTable.Editor( {
        ajax: "/api/ForeCast",
        table: "#tblForeCast",
        fields: [
            {
                "label": "csr:",
                "name": "csr",
                "type": "select",
                "options": [
                
"MARTHA MARTINEZ",
"LILIANA SERRANO",
"ELENA SAGAHON",
"ERIKA CERVANTES"


                ]
            }

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    This thread should help, it's asking the same thing.

    Cheers,

    Colin

Sign In or Register to comment.