On Tue, 2011-05-17 at 09:09 +0100, Jon Hardcastle wrote: > We aren't generating reports in code. But we have tailored some of the > view screens and the csv export etc. > > How/what should one do for category in these cases?
If I understand your question correctly, you're likely going to want to use the category_get_name() function from category_api. You may also want to use category_get_id_by_name() - although beware that this is prone to abuse... you *should* be using category IDs internally within your code instead of category names. The only time you should ever have to deal with category names is when you're doing something related to the user interface (showing category names), category management (checking duplicate names when adding categories) and perhaps importing and exporting as well. Regards, David
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________ mantisbt-help mailing list mantisbt-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mantisbt-help