Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Export button GridField with filtering


Go to End


3 Posts   1679 Views

Avatar
Nimbler

Community Member, 2 Posts

14 June 2017 at 11:24am

Hi,

In the CMS I have a gridfield and have included the GridFieldExportButton button. Then I filter the view-able data using the standard column filtering interface and go to export but it will export all data and not just the filtered results that are shown on screen. Is there a way when exporting to only export the filtered results?

Thanks,
Adrian

Avatar
martimiz

Forum Moderator, 1391 Posts

22 June 2017 at 2:11am

Just to make sure, I've tried this on a GridField added to a Page, in SilverStripe 3.6. I filtered using the form that opens when you click the search icon top right. The export button gave me only the filtered rows.

So I guess it works in 3.6. Maybe you are using a version of SilverStripe where this doesn't work as expected?

Avatar
Nimbler

Community Member, 2 Posts

22 June 2017 at 11:13am

I am using SS 3.6.0. It has been identified as an issue specifically to silverstripe-userforms as a result of a bug in SS itself. I am using version 4.3.2 of userforms. A patch has been made see ticekt https://github.com/silverstripe/silverstripe-userforms/issues/620, but it links back to a issue with the framework as seen https://github.com/silverstripe/silverstripe-framework/issues/6886. Hopefully it will get patched soon.