Home → Using LincDoc 3.1+ → eForm Administration → Using Document Refinement Annotation Transformer (DRAT)
Proceed to one of the following sections for more information:
DRAT tags use the following format:
<<:type:parameter1:parameter2:...>>
The content is rendered according to the type of tag used, each of which accepts different parameters. Many parameters are optional and trailing parameter separators ( : ) may be omitted.
For example:
<<:doc-link:edit:Click Me::>>
Which is the same as the following:
<<:doc-link:edit:Click Me>>
Note: In this example, there is no :: at the end of the second entry.
For example:
<<fieldName>>
is considered the same as
<<:field:fieldName>>
Note: In this example, there is no : after << in the first entry.
Within DRAT tags, the \ (backslash) character is an escape character; meaning that the following character is taken literally. To use <, >, or : in a parameter, escape it with \.
For example:
<<:escape:\<\<\:\>\>>>
produces
<<:>>
DRAT expressions can be used in the following places:
The following types are using with DRAT:
This type creates links to LincDoc documents.
Used to set the scheme for the URL to something other than the default (which is "https"). Currently the only other available scheme is "lincdoc". When the "lincdoc" scheme is used, iPads are forced to open the LincDoc Mobile app instead of the Safari web browser. Note the "lincdoc" scheme is ONLY valid on an iPad with the LincDoc Mobile app installed. It is meaningless when running LincDoc on a PC.
If the event ID is not empty, the event will be fired after the form is loaded.
Note: This parameter only works with the edit and edit-copy methods (listed above).
Used to define the field value that should be used as the document ID instead of the current document ID.
<<:doc-link:edit:link text:lincdoc::plain>>
produces
lincdoc://server.lincware.com/lincdoc/doc/edit/a6a0e89c-7bcd-4e82-87f1-7628e3e179ad
where a6a0e89c-7bcd-4e82-87f1-7628e3e179ad is an example UUID generated from a submitted form.
<<:doc-link:edit::::pre>>
produces something similar to this (note again the sample UUID, which will be unique for each newly submitted form)
<pre>https://server.lincware.com/lincdoc/doc/edit/a6a0e89c-7bcd-4e82-87f1-7628e3e179ad</pre>
<<:doc-link:edit:link text:::html>>
produces
<a href="https://server.lincware.com/lincdoc/doc/edit/a6a0e89c-7bcd-4e82-87f1-7628e3e179ad">link text</a>
<<:doc-link:edit:link text:::html:i9DocId>>
produces
<a href="https://server.lincware.com/lincdoc/doc/edit/a6a0e89c-7bcd-4e82-87f1-7628e3e179ad">link text</a>
where a6a0e89c-7bcd-4e82-87f1-7628e3e179ad is pulled from the "i9DocId" field (i9DocId being a field name from the currently running form).
This type denotes escape content.
For example:
`<<:escape:<<>>`
produces
<<
This type prints field values.
This type prints user information for the currently logged in user.
<<:user:name>>
produces the user's full name.