Scripts
    Preparing search index...

    Class Documents

    Index

    Methods

    • Returns Document which contains element that triggered the currently running script.

      Returns Document

      Document which contains element that triggered the currently running script.

    • Returns all tags that are used on any element in the current document suite.

      Returns Tag[]

      List of Tags.

    • Returns all tags available for the current workspace.

      Returns Tag[]

      List of Tags.

    • Returns Document by its ID.

      Parameters

      • documentId: string

        Id of document.

      Returns Document

      Document or null if not found.

    • Returns Document by its name.

      Parameters

      • name: string

        Name of document.

      Returns Document

      Document or null if not found.

    • Returns document record code of current document suite.

      Returns string

      Document record Code

    • Returns document record id of current document suite.

      Returns number

      Document record ID

    • Returns all documents in the current document suite.

      Returns Document[]

      All documents in the current document suite

    • Returns ID of current document suite.

      Returns string

      Document Suite ID

    • Returns id of the current document suite version.

      Returns string

      Document Suite Version ID

    • Returns Tag by its ID.

      Parameters

      • tagId: string

        ID of tag.

      Returns Tag

      Tag, or null if not found.

    • Returns all tags with specified name.

      Parameters

      • tagName: string

        Name of tag.

      Returns Tag[]

      List of Tags.

    • Returns ID of current template suite.

      Returns string

      Template Suite ID

    • Returns ID of current template suite version.

      Returns string

      Template Suite ID

    • Returns whether all documents in the current document suite are valid for save.

      Returns boolean

      True if documents are valid for save, false otherwise.