compute-string要素 compute-string--element

コンテンツモデル content-model-1

compute-string:==EMPTY

属性 attributes-1

@expr

parents-1

<element>

children-1

なし

説明 description-1

<compute-string>要素を使用すると、XTK式に基づいて文字列を生成し、複数の値に基づいてインターフェイスに「ビルドされた」ラベルを表示できます。

用途と使用状況 use-and-context-of-use-1

<compute-string>が定義されていない場合、デフォルトでは<compute-string>要素がスキーマのプライマリキーの値で入力されます。

属性の説明 attribute-description-1

  • expr (string): XTKまたはXpath式

examples-1

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

受信者で計算された文字列の結果:「John Doe (john.doe@aol.com)」:

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