log-out
1
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…)
patrick
2
Shouldn’t it be
dataset.getValue(row, column)
?
log-out
3
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
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)