compute-string element

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

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now