Troubles excel button export

Troubles excel button export

diego.martinezdiego.martinez Posts: 4Questions: 2Answers: 0

Hi

Hello from sudamerica.
Well friends, my next question is if some one help me datatables export excel. when I give clic en botton shown this message: "Uncaught TypeError: row[i].replace is not a function"
Perhaps could be when I fill the data in DataTable, The code is next:

In the editor fields are:

    fields: [ 
        {
            label:      "agId",
            name:      "agId.agId", 
            type:       "hidden",
        },
        {
            label:      "Activity:",
            name:       "acId.acActivity.caCode",
            type:       "select",
        },
        {
            label:      "Place:",
            name:       "acId.acPlace.caCode",
            type:       "select",
        },    
        ... more fields
 ]                    

In the DataTables are:

    "columns": [
        {   data: null  },
        {   data: "adTimeIni",
            "defaultContent": ""
        },
        {   data: "acId.acDuration",     
            "defaultContent": ""
        },
        {   data: "adTimeEnd",
            "defaultContent": ""
        },
        {   data: "acId.acDescription",
            "defaultContent": ""
        },
        {   data:       "acId.acPlace.caName",
            editField:  "acId.acPlace.caNa,e",
            "defaultContent": ""
        },
        ... more fields
  ]

Thanks a lot if somebody can give me a hand.

Regards to all.

This discussion has been closed.