The property is undefined

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;

See the JSDoc section under the Script editor in the release notes: http://wiki.servoy.com/display/beta/New … riptEditor

You need to provide info about the type of the FoundSet, see “Support for typing JSFoundSets and JSRecord to be of a specific datasource”

Paul