Is it possible to get the results of "fusiontabledata" and "fusiontabledata2", compare both and generate a third "sidebar" showing only the duplicates?
document.getElementById('sidebar_1').innerHTML = fusiontabledata;
document.getElementById('sidebar_2').innerHTML = fusiontabledata2;
function getData_From(response) {
FTresponse = response;
numRows = response.getDataTable().getNumberOfRows();
numCols = response.getDataTable().getNumberOfColumns();
fusiontabledata = "<table><tr>";
fusiontabledata += "</tr><tr>";
for (i = 0; i < numRows; i++) {
for (j = 0; j < numCols; j++) {
fusiontabledata += "<td>" + response.getDataTable().getValue(i, j) + "</td>";
}
fusiontabledata += "</tr><tr>";
}
fusiontabledata += "</table>"
document.getElementById('sidebar_1').innerHTML = fusiontabledata;
}
function getData_To(response) {
FTresponse = response;
numRows = response.getDataTable().getNumberOfRows();
numCols = response.getDataTable().getNumberOfColumns();
fusiontabledata2 = "<table><tr>";
fusiontabledata2 += "</tr><tr>";
for (i = 0; i < numRows; i++) {
for (j = 0; j < numCols; j++) {
fusiontabledata2 += "<td>" + response.getDataTable().getValue(i, j) + "</td>";
}
fusiontabledata2 += "</tr><tr>";
}
fusiontabledata2 += "</table>"
document.getElementById('sidebar_2').innerHTML = fusiontabledata2;
}