How to create Detail Template

Step 1: Select “Centrallogging” in the Configuration Menu

Centrallogging in Configuration Menu

Step 2: Select “Detail Templates” in Sub-Menu

Detail Templates in Menu

Step 3: Click the “New” Button in Toolbar

New Button

Step 4: Define Data Type and Data Name for the Template and create it

New Detail Template Modal

Step 5: Select newly created Template in the Templates List

Grid Templates List

Step 6: Select Template Type (Nunjucks or Mustache) and configure it

Grid Templates List
Nunjucks Configuration Example
  {
      dataType = "data_processing"
      dataName = "configuration_apply"
      template = """
  {% extends "content" %}
  {% block header %}
  <i class="fas fa-tag"></i> {{entry.data._name_}}
  {% endblock %}
  {% block content %}
  {% if entry.data.dataFlowConfigurationUpdates.length > 0 %}
  <h2>Data Flow Configuration Updates</h2>
  <table class="table table-sm">
  <tr>
      <th>Id</th>
      <th>Name</th>
      <th>Action</th>
      <th style="text-align:center" colspan="4">Module Updates</th>
  </tr>
  {% for item in entry.data.dataFlowConfigurationUpdates %}
  <tr>
      <td>{{ item.flowId }}</td>
      <td>{{ item.flowName }}</td>
      <td>{{ item.action }}</td>
      <td colspan="4">
          <table class="table table-sm">
              <tr>
                  <th style="border-top:none">Id</th>
                  <th style="border-top:none">Name</th>
                  <th style="border-top:none">Type</th>
                  <th style="border-top:none">Action</th>
              </tr>
              {% for module in item.moduleUpdates %}
                  <tr>
                      <td class="col-sm-4">{{ module.id }}</td>
                      <td class="col-sm-4">{{ module.name }}</td>
                      <td class="col-sm-3">{{ module.type }}</td>
                      <td class="col-sm-1">{{ module.action }}</td>
                  </tr>
              {% endfor %}
          </table>
      </td>
  </tr>
  {% endfor %}
  {% endif %}
  </table>
  {% if entry.data.globalConfigurationUpdates.length > 0 %}
  <h2>Global Configuration Updates</h2>
  <table class="table table-sm">
  <tr>
      <th>Id</th>
      <th>Name</th>
      <th>Type</th>
      <th>Action</th>
  </tr>
  {% for item in entry.data.globalConfigurationUpdates %}
  <tr>
      <td>{{ item.globalConfigurationId }}</td>
      <td>{{ item.globalConfigurationName }}</td>
      <td>{{ item.type }}</td>
      <td>{{ item.action }}</td>
  </tr>
  {% endfor %}
  {% endif %}
  </table>
  {% endblock %}
  """

  templateType = "nunjucks"
  }

Step 7: Click the “Save” Button in the Toolbar

Grid Templates List