var query = "select groupsid from groups where group_name = curr_usergroup";
var pkdataset = databaseManager.getDataSetByQuery(forms.groups_list.controller.getServerName(), query, null, 100);
forms.groups_list.controller.loadRecords(pkdataset);
When I execute the script I get an error "Error loading primary key data, null" with no further info. In the debugger against pkdataset I am getting a 'dynamicSQL error SQL error code -104 Token unknown - ' plus some other info that I cannot scroll onto screen!
I'm probably missing somethign simple here but can't get it!