title: DOORS DXL: How to place the DXL Code in Trigger?
body: <p>I want to apply a persistant pre trigger on a specific attribute in Relational DOORS with DXL.
  The Declaration follows the below syntax:</p>
  <p><code>Trigger trigger(string name, l, t, e, int p, string dxl)</code></p>
  <p>where:</p>
  <p>l - level: project, module, object, module</p>
  <p>t - type: pre or post</p>
  <p>e - event: open, read, close, save, modifiy or sync</p>
  <p>The Trigger should insert to the current modified Object the username and the current date in front of the text (e.g. 2021-08-06 Max: 'Text from user')</p>
  <p>My current Code:
  <code>trigger(&quot;Triggername&quot;, module-&gt;&quot;specificMod&quot;-&gt;attribute-&gt;&quot;specificAttr&quot;, pre, modify, 10, 'DXL Code')</code></p>
  <p>The DXL Reference Manual implements the Code with #include but every user uses an another path for the trigger library.</p>
  <p>There is already an example code in the DXL library for saving the view before closing the Module:</p>
  <pre><code>
  trigger(u (NLS_(&quot;:autoSaveView&quot;)), module-&gt;formal, pre, close, 10,
          (NLS_(&quot;if (doorsname == \&quot;&quot;)) u (NLS_(&quot;\&quot; &amp;&amp; confirm \&quot;Save current view?\&quot;) save view \&quot;&quot;)) u (NLS_(&quot;-autoSaved\&quot;&quot;)))
  </code></pre>