EntityListToCSV

Content Type: Module
Categories: Data

Overview

This module provides a quick way to export CSV data from a list of entities to a file. It exports the value of every string attribute in the entity it can find. The recommended use is to create a non persistent entity with the fields you wish to export. Populate a list of these entities - converting non string values to strings along the way. You then pass this to the EntityListToCSVFile action to export this data as CSV.

Documentation

EntityListToCSV

This Java action will iterate through a list of entities and export all the String attributes to a CSV file. Attributes of other types are ignored. If you wish to use other types, convert them to Strings elsewhere and store them in the entity you are using for the export.

A generalisation of FIleDocument is passed with the details of where to save to CSV file. If you don't have your own generalisation, use CSVFIleDocument.

There is also the option to include the names of the attributes as a header line if necessary.

It is not possible to change the output order of the columns.

Releases

Version: 1.0.0
Framework Version: 7.7.1
Release Notes: Renamed CSVFileDocument parameter to TheCSVFileDocument as it was being renamed in recent versions of the Mendix Modeller when imported.