You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for(f=0;f<result.length;f++)
{
data = '{'+" Shop : ""+result[f].businessname+"", Points : "+result[f].point+'}';
data = data+" , " +data;
}
//data export
data = [data];
data = data.replace(/'/g, '');
var model = mongoXlsx.buildDynamicModel(data);
mongoXlsx.mongoData2Xlsx(data, model, function(err, data) {
console.log('File saved at:', data.fullPath);
});
This is what i am doing
but i guess my data comes as
['{shop : "shopname",Points : 10 }'];
Please help .i tried replace function but its not working .
Or is it any other issue,
The text was updated successfully, but these errors were encountered:
My exported data is not comming in order,its coming a single character in a column
data.collection("Points”).find({'businessId': ‘shopname’ ,’_created_at':{$gt:d}}, { _id: false}).toArray(function(err, result) {
for(f=0;f<result.length;f++)
{
data = '{'+" Shop : ""+result[f].businessname+"", Points : "+result[f].point+'}';
data = data+" , " +data;
}
//data export
data = [data];
data = data.replace(/'/g, '');
var model = mongoXlsx.buildDynamicModel(data);
mongoXlsx.mongoData2Xlsx(data, model, function(err, data) {
console.log('File saved at:', data.fullPath);
});
This is what i am doing
but i guess my data comes as
['{shop : "shopname",Points : 10 }'];
Please help .i tried replace function but its not working .
Or is it any other issue,
The text was updated successfully, but these errors were encountered: