Member Junction
    Preparing search index...

    This is the first-level sub-class of EntityDocumentTemplateParserBase. This class is used to parse a string template with variables and functions. If you wish to override functionality you can subclass it and then use the

    decorator to register the sub-class of EntityDocumentTemplateParser with a priority of 1 or above to then be used instead of the default implementation.

    Hierarchy

    • EntityDocumentTemplateParserBase
      • EntityDocumentTemplateParser
    Index

    Constructors

    Properties

    _provider?: IMetadataProvider

    Optional provider override; falls back to Metadata.Provider when not set.

    __cache: { [key: string]: string } = {}

    Accessors

    Methods

    • Parameters

      • argument: string
      • entityID: string
      • entityRecord: any
      • ContextUser: UserInfo

      Returns Promise<string>

    • This method will parse an entity document template and replace values within ${} placeholders with actual values from the entity record. In the case of function calls within the placeholders, the functions object must be provided to parse the function calls.

      Parameters

      • Template: string

        the document template to parse

      • EntityID: string

        the ID of the entity

      • EntityRecord: any

        the values for the entity record

      • ContextUser: UserInfo

        the current user

      Returns Promise<string>

      the evaluated value of the template incorporating fields and function call(s), if any.

    • This function

      Parameters

      • entityID: string
      • entityRecord: any
      • ContextUser: UserInfo
      • relationshipName: string
      • maxRows: number
      • entityDocumentName: string

      Returns Promise<string>

    • Parameters

      • EntityID: string
      • EntityRecordPrimaryKey: string
      • Content: string

      Returns string