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, selectTemplate LibrariesGeneric Table Exporter.
- FromLibraries, underComponents, dragGeneric Table ExportertoNetLogicinProject view.
- InProperties, 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 Compose SQL queries.
- WrapFields.
- Associate theExportmethod ofGenericTableExporterwith an event.For example, associate theExportmethod with theMouseClick eventof a button.
Provide Feedback