csv export

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
SatiMutlu
Posts: 4
Joined: 14 Oct 2005, 09:28

csv export

Post by SatiMutlu »

hello,

how can i export the custom files in the csv file?

the page http://www.futureware.biz/blog/index.ph ... &tb=1&pb=1 can`t help me, is there any other answers for this problem to show the custom fields?

in the code is typed:
# In addition, you can use the following:
# - "selection" for selection checkboxes.
# - "edit" for icon to open the edit page.
# - "custom_xxxx" were xxxx is the name of the #222288">custom field that is valid for the
# current project.

so i must only made this change?

$t_columns[] = 'custom_' . $t_desc['name'];

to =>

$t_columns[] = 'custom_field_1' . $t_desc['name'];
$t_columns[] = 'custom_field_2' . $t_desc['name'];
$t_columns[] = 'custom_field_12' . $t_desc['name'];
...

thank you,
faSci...
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post by Narcissus »

Hi SatiMutlu:

I followed the link but couldn't find where you got that sample code from. What version of Mantis are you working with?

From the looks of things, you're trying to add the data from three custom fields: these fields appear to be named 'field_1', 'field_2' and 'field_12'.

If this correct, you need to use this code:
$t_columns[] = 'custom_field_1';
$t_columns[] = 'custom_field_2';
$t_columns[] = 'custom_field_12';

Hope that helps. If it doesn't, let me know...
Lincoln.
Post Reply