Try our conversational search powered by Generative AI!

Make it easier to create a custom dataExporter

Fixed in

EPiServer.Forms 3.1.0

(Or a related package)

Created

Jun 27, 2016

Updated

Sep 13, 2016

Area

Exposing data

State

Closed, Fixed


Description

Forms 3.0 hard-coded the use of csv, json, or xml in DataExportingController. (A developer could replace the DataExportingController or override the hard-coded switch implementation.)

Forms 3.1 uses a plugin-approach by populating the appropriate exporter based on mimeType (which each exporter provides).

To use the new DataExporter, use the Forms.UI package, then subclass the DataExporterBase. A new Item is added to the drop-down in View Form Submission.

See a code example at https://github.com/episerver/EPiServer.Forms.Demo/tree/master/Implementation.