Skip to content

Data Export

Christian Beier edited this page Aug 12, 2025 · 6 revisions

Warning

This page is under review and may contain incorrect information.

Xolmis Mobile supports exporting field data in multiple formats to facilitate analysis, reporting, and sharing.

Supported Formats

Format Use Case
CSV Spreadsheet analysis, data import
Excel Rich formatting, multi-sheet exports
JSON Xolmis Desktop interoperability

Export Services

Each module (e.g., Inventories, Nests) has its own export service located in lib/services/export/.

Example: CSV Export

final csvData = ListToCsvConverter().convert(rows);
final file = await _writeToFile(csvData, 'inventories.csv');

Example: Excel Export

var excel = Excel.createExcel();
Sheet sheet = excel['Nests'];
sheet.appendRow(['Nest ID', 'Species', 'Outcome']);
sheet.appendRow(['001', 'Tyrannus melancholicus', 'Fledged']);

File Storage

  • Files are saved using path_provider to the app’s documents directory.
  • Exported files can be shared via native share sheets or uploaded to cloud storage.

Permissions

Ensure WRITE_EXTERNAL_STORAGE is granted on Android before saving files externally.

Clone this wiki locally