Hi, I have this code:
var incFS = databaseManager.getFoundSet(forms.Incidencia.controller.getDataSource());
incFS.loadRecords("select id_incidencia from " + databaseManager.getDataSourceTableName(controller.getDataSource()) + " where id_incidencia = " + incidencia_id)
var inc = incFS.getRecord(1);
If I don’t set the JSDoc tag for inc var, if I put this code:
var x = inc.id_incidencia
I receive this warning:
The property id_incidencia is undefined for the type JSRecord
Ok. Then I put this:
/** @type {JSRecord<db:/dbserver/incidencias>}*/
It’s fine, but then databaseManager.getDataSourceTableName(controller.getDataSource()) is useless because I have to put the server and table names in the tag! If I change the source of the form, the code works fine, but I will receive a jsdoc warning again.