compute-string element
Last update: January 6, 2025
- Applies to:
- Campaign Classic v7
- Topics:
- Schema Extension
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>
recommendation-more-help
601d79c3-e613-4db3-889a-ae959cd9e3e1