Can the importXL function be integrated into the following code (below) so the dataModel points to an Excel file rather than data from the generateData function?
function getObj( index ){
var rows = 20,
cols = 10,
skipHiddenCols,
skipHiddenRows,
includeHeader,
toLetter = pq.toLetter,
data = index == 0? pq.generateData(rows, cols): [],
CM = [];
for (var i = 0; i < cols; i++) {
CM = { title: toLetter(i), width: 155 };
}
var obj = {
showTitle: false,
height: 500,
colModel: CM,
dataModel: {data: data}
};
return obj;
}
pq.grid("#KPMGData", getObj(0));