I have some problems when I try to export my data as excel using the datatables button.
When my data type is a number and starts from 0, this value will disappear. and also they automatically provide (.) dot as a delimiter. can someone help me to fix this??
I want my data like this. without (point) and number 0 is not lost when the number 0 is at the beginning

this my script
$('#submitdata').on('click',function(){
var vbasedon = $("#selbased").val();
var mulai = $("#start_date").val();
var selesai = $("#end_date").val();
var vtipe = '';
if(vbasedon=='apartemen' || vbasedon=='rusunawa'){
var vtipe=$(".tipedt").val();
} else {
vtipe='';
}
$.ajax({
url: "<?= base_url('index.php/')?>",
data: {vbasedon:vbasedon,mulai:mulai,selesai:selesai,vtipe:vtipe},
cache: false,
type: "POST",
dataType:"JSON",
success: function(msg){
initEffortStandardTable(msg);
}
});
});
function initEffortStandardTable(dataObject) {
var effortStandardTable = $('.laporan').DataTable();
var columns = [];
Object.keys(dataObject[0]).forEach(column=> {
if (column === 'ctotalPerYear'
|| column === 'ftotalPerYear'
|| column === 'CPUETotalPerYear') return;
columns.push({
data: column,
title : column.toString().toUpperCase().replace('_', ' '),
footer: column
});
});
effortStandardTable.destroy();
$('#laporan').empty();
var html = `<table class="table table-striped table-bordered table-hover laporan" ></table>`;
$('#laporan').append(html);
effortStandardTable = $('.laporan').DataTable({
data: dataObject,
columns : columns,
"bDestroy": true,
responsive: true,
dom: '<"html5buttons"B>lTfgitp',
buttons: [
{ extend: 'copy'},
{extend: 'excel', title: 'Laporan'},
{
extend: 'pdfHtml5',
orientation: 'landscape',
pageSize: 'A4'
}]
});
}



="String"like'<td>="'+msg[i].nama+'"</td>'?