Custom fields in reports ? How?

The release related discussions, plans and questions.
Locked
isol
TestLink user
Posts: 7
Joined: Tue Mar 11, 2008 1:49 am

Custom fields in reports ? How?

Post by isol »

Hello, we use some custom fields to see how many of our subrequirements fail or pass in our [pre-existing] tests. Now I would like to have report of these (numeric) fields. Where do I have to start if I want to make a table of these?

Thank you for hints,
Jakob
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

  • Duplicate the most similar existing report (link from navigator, php page and smarty template)
    Set smarty to debugging=true (to see generated data)
    Duplicate and modify function with SQL query to achieve your data.
    Modify layout of the duplicated smarty template.
isol
TestLink user
Posts: 7
Joined: Tue Mar 11, 2008 1:49 am

Thanks, will try ASAP.

Post by isol »

Must see if I understand that; I am a little Perl biased rater than PHP...
isol
TestLink user
Posts: 7
Joined: Tue Mar 11, 2008 1:49 am

Post by isol »

Hmm. The reports just call functions from results.class.php. I checked if there is any function that deals with custom fields, but there is none as far as I can see. I fear it is out of my scope to write such a function in PHP, I am a user rather than a programmer. Perhaps this could be added to a wish list - Custom fields are not of much use if they cannot be included in reports.
It would, for example, make sense to just have the ability to include such fields in pre-existing reports.
Locked