Page 1 of 1

Export CSV Problem

PostPosted: Fri Nov 07, 2008 4:12 am
by fauners
Hi all,

I'm having a bit of a problem with my csv export and was wondering if anyone can help.
I have 2 tables, employees and events, and a join table employeeevents all are working fine and certain employees are designated to certain events and in the list view of each event you can see which employees are part of that event. So everything is working just as i want it.
But when I am looking at the list of employees for a certain event and export to csv, all employees from all events are exported. Which as you can imagine is not what i want to happen.

Any help would be great thanks.

Adam

PostPosted: Fri Nov 07, 2008 8:31 am
by Jean
Hi Adam,

This is because what is loaded is the table you point to or the default table.

In csv.php you have this code :
Code: Select all
$table =& Dataface_Table::loadTable($query['-table']);


I had this problem with a custom action, I gave up and asked to the user to just do a copy/paste of the result into an excel table.

May be Steve will do another suggestion for your case...

Cheers
Jean

PostPosted: Fri Nov 07, 2008 9:21 am
by shannah
I can't seem to reproduce this behavior with my installations. Any chance I can get access to your app to check it out?

I have a similar issue

PostPosted: Sat Nov 08, 2008 9:32 am
by chapin
I have a similar issue but the difference is that my export-list contains a completely different list from what I expected. I also asked to the user to just do a copy/paste of the result into an excel table.

PostPosted: Sat Nov 08, 2008 5:32 pm
by shannah
Any chance I can get access to that application to take a look?

PostPosted: Mon Nov 10, 2008 5:44 am
by chapin
shannah wrote:Any chance I can get access to that application to take a look?


How can we arrange that? Shall I send you the zipped files off-line?

cheers
Giovanni