The query:
var maxReturedRows = 25;//usefull to limit number of rows
var query = 'SELECT klant_id FROM klanten WHERE logonname =\''+ globals.gloginName +'\' AND logonpassword =\''+ globals.gloginPassword +'\'' ;
var dataset = databaseManager.getDataSetByQuery('Ready2Learn', query, null, maxReturedRows);
this works; now depending on wether the dataset is empty (null according to docs) I want to load a set of records or not
if(dataset)
{
forms.klanten.controller.loadRecords(dataset)
forms.klanten.controller.show()
}
This way I allways see the controller, so the if is always executed. Why is that since when I found no records dataset was null?
TIA