Export CSV Problem

Archived from the Xataface Users forum.

fauners — Fri Nov 07, 2008 4:12 am

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


Jean — Fri Nov 07, 2008 8:31 am

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


shannah — Fri Nov 07, 2008 9:21 am

I can’t seem to reproduce this behavior with my installations. Any chance I can get access to your app to check it out?


chapin — Sat Nov 08, 2008 9:32 am

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.


shannah — Sat Nov 08, 2008 5:32 pm

Any chance I can get access to that application to take a look?


chapin — Mon Nov 10, 2008 5:44 am

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