Date index for Nov 2003


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [achievo] unique activities+person+project in report result...



Hi,

Jeroen van Wissen wrote:

I've modified the query below to my needs, but the next problem seems to be that the $data variable can't be processed by
the recordList object.

True, the recordlist expects columns from the node object on which you call it. You can use the recordlist, but then you have to create a small custom node, like this:


$node = new atkNode("myreportrenderer");
$node->add(new atkDurationAttribute("time"));
$node->add(new atkDateAttribute("date"));

in other words, add an attribute for each column you want to render. The advantage is that the attributes know how to render values like dates etc.

Finally, you can call recordlist for your data.

Disclaimer: I made this up on the spot, so it may not work. Have a look at hoursurvey.inc and projectstats.inc which do something similar.

I usually use the $g_layout class to create tables with data.

Greetings,
Ivo




http://www.achievo.org/lists achievo.org - ©1999-2002 ibuildings.nl BV