ATC: SETHTML tablename.fieldname = new-value

This command is similar to the ATC: SET command but maintains any HTML formatting of the text value expressed in the command. The text editor within the Workflow Script tool supports HTML formatting.

  • tablename is optional; however, if it is omitted, the Document Header (DocMasterDetail) is assumed. It specifies the target of the assignment. You can use @ to reference the current row in a FOREACH loop or TargetRow to reference a recent row manipulated by another command such as ATC: ADD COMMENT or ATC: ADD ITEM.
  • . (period) is required only if tablename is specified. It separates tablename from the fieldname.
  • fieldname is required. It specifies the field in tablename to receive the value.
  • = (equal sign) is required.
  • new-value is required. It specifies a value to be stored for the field. The value can include one or more nested Word Template bookmarks. Square brackets are required around bookmarks.

Example

ATC: SETHTML DocRevision.NoteA = 
     Please send your response to the Attention of [DocHeader_FromUser].

The above example means “in the Note A field, include the text Please send your response to the Attention of the ‘From User’, and keep the text formatting as shown.”


Last updated: September 19, 2017 at 12:57 pm; green text = new

Related Post

ATC: ADD ITEMATC: ADD ITEM

ATC: ADD ITEM fieldname value This command adds an Item to the current document and sets the named fields to the value specified. Multiple fieldname and values can be specified,

ATC: COPYATC: COPY

ATC: COPY KEY dataPK  | [doctype] project document supplemental; WITH option This command creates a new document, usually by copying a source document.  The DocCopyConfig rules are applied.  After this

ATC: ENDIFATC: ENDIF

ATC: ENDIF This command marks the end of an IF block that starts with ATC: IF. Examples ATC: IF SourceDocNo = NULL ATC: SET SourceDocNo = DocNo ATC: ENDIF The