One of the nice features of v6 is that it highlights syntax issues in the methods and I’m getting ‘The property ? is undefined for the type JSRecord’, where ? is pbx_model, timer and datadir.
So my question is, should I do this a different way?
var lvConfigFS = databaseManager.getFoundSet('logger','config');
lvConfigFS.loadAllRecords();
var lvConfig = lvConfigFS.getRecord(1);
globals.gvPBXModel = lvConfig.pbx_model;
globals.gvLogLoop = lvConfig.timer;
globals.gvDataPath = lvConfig.datadir;