10930 Posts in 2613 Topics by 1810 members
Page: 1 2
|Go to End||Next >|
14 May 2010 at 10:07pm Last edited: 14 May 2010 10:08pm
I've searched the forums/documentation and can't find any info on this...
With the ModelAdmin export to CSV function, is it possible to export more than just the summary fields that are displayed?
When my client is using the system it is only sufficient for them to see 4 or 5 summary fields of the DataObject but would like to be able to export ALL fields of the DataObject to CSV. I've had a look at http://doc.silverstripe.org/tablelistfield but don't know how to tie this into the default CSV Export button in modeladmin, or if I need to create a custom CsvQuery?
Any help would be great!
13 July 2010 at 3:27am
Did you find any solution? I'm stuck with the same problem...
Thank you very much
13 July 2010 at 5:05am
I never got it solved unfortunately
If you do manage to find a solution please post on the forum (if you get time), and I'll do the same.
13 July 2010 at 7:55am
I have found a solution. It's not the best, but it works...
In the DataObject of the ModelAdmin I have defined the variable $summary_fields with all the fields I need in my csv file.
public static $summary_fields = array('var1','var2', 'var3');
document.getElementById('id_from_the checkbox_in_the_search_form').checked = false;
I hope this will serve you.
13 July 2010 at 9:45pm
Great, I'll give this a go!
Thanks a lot
4 August 2010 at 9:22pm
Having the exact same requirement from a client too, anyone found a good solution to this?
22 October 2010 at 7:44pm
Silverstripe crashes when I run CSV export on an empty result.
Is this a core issue?
Does anybody have an idea how to fix this?
27 October 2011 at 5:17am
I know this is an old-ish thread but wondered if someone had come up with a fix for this and wouldn't mind sharing a bit of example code?
Page: 1 2
|Go to Top||Next >|