Hi,
I have a custom query, which is needed because of multiple joins to the same model.
To edit the dataset, wheels needs a structure.
Is it possible to return the query result as structure?
public function getPSALink(required string linkID) {
var queryService = new query();
queryService.setName("qryPSALink");
queryService.setDatasource("myDatasource");
queryService.setSQL("
SELECT *
FROM mytable
");
var result = queryService.execute();
return result.getResult();
}
Thanks in advance.
Thorsten