Table of Contents

Data member expression examples

Same-level data member reference

Input

'The document Id is {DocumentId}.'

Output

'The document Id is 929bdc15-79d8-4a1f-9467-c237f040939d.'

Breakdown

  1. 'The document Id is '
  2. {DocumentId}
  3. Evaluates to "929bdc15-79d8-4a1f-9467-c237f040939d"
  4. '.'

Assuming that the domain object has:
data member 'DocumentId' equal to '929bdc15-79d8-4a1f-9467-c237f040939d'.

Referencing data members deeper

Input

'The customer is {Customer.Party.PartyName} and its number is {Customer.Number}.'

Output

'The customer is John Doe and its number is C12345.'

Breakdown

  1. 'The customer is '
  2. {Customer.Party.PartyName}
    • Follows the reference path:
      • Customer
        • .Party
          • .PartyName
    • Evaluates to 'John Doe
  3. ' and its number is '
  4. {Customer.Number}
    • Follows the reference path:
      • Customer
        • .Number
    • Evaluates to 'C12345'
  5. '.'

Assuming that the domain object has:
data member 'Customer' with members 'Party.PartyName' equal to 'John Doe' and 'Number' equal to 'C12345'.

Including a format specifier

Input

"The customer is {Customer.Party.PartyName:de}."

Output

"The customer is John Doe."

Breakdown

  1. 'The customer is '
  2. {Customer.Party.PartyName:de}
    • Follows the reference path:
      • Customer
        • .Party
          • .PartyName
    • Evaluates to MultilanguageString object
    • Format specifier finds :de and applies it.
    • Returns 'Max Mustermann'
  3. '.'

#Error# Not existing reference

Input

'The customer is {Customer.Name}.'

Output

'The customer is #Error: Attribute 'Name' not found#.'

Breakdown

  1. 'The customer is '
  2. {Customer.Name}
    • Follows the reference path:
      • Customer
        • .Name --> Fail. Reference doesn't exist.
    • Returns error.
  3. '.'