use of com.servoy.j2db.dataprocessing.JSTable in project servoy-client by Servoy.
the class JSDataSource method getTable.
/**
* Get the table of a datasource.
*
* @return JSTable table
*/
@JSFunction
public JSTable getTable() {
try {
ITable table = application.getFoundSetManager().getTable(datasource);
IServer server = application.getSolution().getServer(table.getServerName());
if (server != null) {
return new JSTable(table, server);
}
} catch (RepositoryException e) {
Debug.log(e);
}
return null;
}
Aggregations