Hi,
I try to list up custom information in a Report which does not exist as DataObjects in the database.
In generall I'm using the newq DataObjectSet function and push the objects using new ArrayData into it. That doesn't seem to work in a Report...
Here is my code:
function sourceRecords($params = null) {
$ret = new DataObjectSet();
$record = array(
'title' => 'Some Value',
'value' => '23'
);
// Commenting the following line works, but of course, there are no results in the report
$ret->push(new ArrayData($record));
return $ret;
}
function columns() {
return array(
"Title" => array(
"title" => "Title",
"link" => false,
),
"Value" => array(
"value" => "Value",
"link" => false,
),
);
}
Calling the report, ends in a "Error loading page" message. There is nothing in the PHP Error logs...
Any ideas?
Thanks,
mcoco