Need to format output data excel to show yes for 1 and no for 0
Need to format output data excel to show yes for 1 and no for 0
narbehmovsesian
Posts: 2Questions: 1Answers: 0
Hello,
I currently have
exportOptions: {
format: {
body: function ( data, column, row ) {
return column === 7 ?
data.replace (1 , 'YES') :
data;
}
}
This works fine, but my problem is that I also need to do data.replace( 0 , 'NO' ) on the same row.
Thank you
This discussion has been closed.
Answers
After trying different approaches I found the solution to this problem
Yes, this is the correct approach at the moment. You can also use orthogonal data as another approach.
Allan