Importing and exporting CSV files in DataTables - Platform - BlueCat Gateway - 20.12.1

Gateway Administration Guide

prodname
BlueCat Gateway
version_custom
20.12.1

Include the ability to import or export CSV files in any workflows that use the DataTables UI component. DataTables is a plugin for the jQuery Javascript library for adding interactive features to any HTML table. By default, the Export CSV button is enabled in the BlueCat Gateway user interface.

To configure the import and/or export functionalities:

  1. In <workflow_name>_form.py, that uses a data table (i.e., when the TableField class is instantiated), pass the buttons parameter.
  2. Pass the parameter as required:
    • To enable both the Import CSV and Export CSV buttons:
      buttons = ['import', 'export']
    • To disable all the buttons:
      buttons = []
    Note: If the buttons parameter is not passed at all, the Export CSV button is enabled by default.