"The property xx is undefined for the type JSDataSet"?

Hi, I have this code:

var sql = "select * from v_export_particip"
/**
  * @type {JSDataSet<db:/datos_server/v_export_particip>}
  */
var dataset = databaseManager.getDataSetByQuery('datos_server', sql, null, -1)

[...]

dataset.rowIndex = 1
var id = dataset.id_particip

But I receive this warning:

The property id_participis undefined for the type JSDataSet<db:/datos_server/v_export_particip>

What’s wrong?

(v_export_particip is a view, not a table…)

Shouldn’t it be

dataset.getValue(row, column)

?

In older versions of Servoy you can use that notation, but I don’t know if it is deprecated (the code works fine in Servoy 5)

Perhaps /**@type {JSDataSetdb:/datos_server/v_export_particip} */ will work.

Regards

What’s the difference?

JSDataSet currently only understands the Object type property:

http://wiki.servoy.com/display/public/D … sing+JSDoc

this one: (or the optional one)

{ {name:String, age:Number}}
An object with a “name” and “age” key, with resp. a string and number value

Please make a case to let a JSDataSet also work with a datasource notation (currently thats only supported by JSFoundset and JSRecord)