compute-string element

Last update: 2023-08-01

Content model

compute-string:==EMPTY

Attributes

@expr

Parents

<element>

Children

None

Description

The <compute-string> element enables you to generate a string based on an XTK expression to display a “built” label in the interface based on several values.

Use and context of use

When no <compute-string> is defined, a <compute-string> element is entered by default with the values of the primary key in the schema.

Attribute description

  • expr (string): XTK and/or Xpath expression

Examples

<compute-string expr="@label + Iif(@code='','', ' (' + [folder/@label] + ')')"/>
<compute-string expr="ToString([@centralCatalog-id]) + ',' + ToString([@localOrgUnit-id])" />

Result of the string calculated on a recipient: “John Doe (john.doe@aol.com)”:

<element name="recipient">
<compute-string expr="@lastName + ' ' + @firstName +' (' + @email + ')'
"/>
...
</element>

On this page