This is my first attempt at using this function. I’m attempting to find all records which have the current value of the field “catkey”. Therefore I’m first putting the target value into the variable “key”. However I’m getting an error message saying it can’t find the column “key”. Obviously a syntax error, but what?
var key = catkey;
var maxReturedRows = 10;//useful to limit number of rows
var query = 'SELECT catid FROM cat WHERE catkey = key';
var dataset = databaseManager.getDataSetByQuery(controller.getServerName(), query, null, maxReturedRows);