Export a database table to a CSV file
You can use the Generic Table Exporter script to export the contents of a table to a CSV file.
Prerequisites
To export a database table to a CSV file
-
From the toolbar, select
Template Libraries and search for Generic Table Exporter.
- From Libraries, under Components, drag Generic Table Exporter to NetLogic in Project view.
-
In Properties, complete:
- CSVPath. The path to the CSV file to which the alarms history will be exported.
- FieldDelimiter. A character used to delimit values of a row.
- Table. A database table.
- Query. An SQL query to filter data. For more information, see Use cases.
- WrapFields.
-
Associate the Export method of GenericTableExporter with an event.
For example, associate the Export method with the MouseClick event of a button.