I’m using getDataSetByQuery and I can get the value of a row/column from its index. I want to select the value using the column name, though I may not know the position of that column in the index.
Is there a syntax I can use to do ‘dataset.getValue(myColumnName)’ ?
var dataset = databaseManager.getDataSetByQuery(currentcontroller.getServerName(),"SELECT myColumnName FROM myTable",null,-1);
for (var i = 1; i <= dataset.getMaxRowIndex(); i++) {
dataset.rowIndex = i;
application.output(dataset.myColumnName);
}