Configuring the table view
==========================

.. admonition:: Note
   :class: note

   The table view is always available on all non-empty datasets.

You can configure which fields are displayed, and in which order. Note that it
only changes the table visualization; removing a field from the table view will
not remove it from the dataset itself, and it will still be available in other
visualizations and if you export the dataset.

.. ifconfig:: language == 'en'

    .. image:: images/table__table--en.jpg
        :alt: Table view

.. ifconfig:: language == 'fr'

    .. image:: images/table__table--fr.jpg
        :alt: Vue Table

Configuring the Table visualization
===================================

.. admonition:: Prerequisite
   :class: important

   For the Table visualization to be available, the dataset must not be empty.


In the edition interface of a dataset, the Visualizations > Table tab allows to configure the Table visualization displayed in the front office, once the dataset is published on the portal.

The Table visualization, when available for a dataset, cannot be disabled.


.. list-table::
  :header-rows: 1

  * * Customization name
    * Description
    * Usage
  * * Default sort
    * By default, the Table visualization keeps the order of the records as it is after they been processed. It is possible to define another default sort, by choosing a field and a sort type.
    * 1. Click on the "Default sort" list box.
      2. Choose a field from the dataset, on which the sorting will be based.
      3. Click on the second list box, displayed below the first one.
      4. Choose a sort type.
  * * Displayed fields
    * By default, the Table visualization keeps the order of the fields as they are after they have been processed. It is possible to reorder them, as well as to hide fields.

      .. admonition:: Important
         :class: important

         Reorganizing and hiding fields from the Table visualization configuration tab only changes the Table visualization displayed in the front office. In contrary to when using the Processing tab, removing a field from the Table visualization will not remove it from the dataset itself, and it will still be available in other visualizations, as well as if the dataset is exported.

    * To reorder fields:

      1. Click on a field among the list.
      2. Drag and drop the field above or below another one.

      To hide a field from the Table visualization:

      1. Find the field among the list.
      2. Click on the X icon at the right of the field.


.. ifconfig:: language == 'en'

    .. image:: images/table__table--en.jpg
        :alt: Table view

.. ifconfig:: language == 'fr'

    .. image:: images/table__table--fr.jpg
        :alt: Vue Table

Rework + update Table visualization configuration documentation
Rework + update Table visualization configuration documentation
