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
  1. From the toolbar, select Template Libraries and search for Generic Table Exporter.
  2. From Libraries, under Components, drag Generic Table Exporter to NetLogic in Project view.
  3. 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.
  4. Associate the Export method of GenericTableExporter with an event.

    For example, associate the Export method with the MouseClick event of a button.