I have the following method that I'm trying to use to populate a Valuelist.
- Code: Select all
function onAction_test(event) {
var query = "SELECT state_name FROM states WHERE state_country = ?";
var args = new Array();
args[0] = forms.Names.name_address_country;
var dataset = databaseManager.getDataSetByQuery(databaseManager.getDataSourceServerName(controller.getDataSource()), query, args, -1);
}
This method keeps throwing this error.
ReferenceError: "controller" is not defined.
I have other methods that use the same getDataSetByQuey code that works properly. I even placed this method in a plain button but it keeps throwing the error.
All help greatly appreciated.