Write the full result set of a Table to the console

What this does

The loop writes each row object to the browser console.

getResultSet() retrieves all rows currently returned by the table query.

Each element in resultSet represents a row with dimension + measure values.

var resultSet = Table_1.getDataSource().getResultSet();
for (var i = 0; i < resultSet.length; i++) {    
    var row = resultSet[i];    
    console.log(row);
}
Code language: JavaScript (javascript)
Scroll to Top