Data templates and transformations > Data templates > Creating data templates for Message data

Creating data templates for Message data
The simplest way to create a data template is to copy the Message structure and then define the data transformation for the data template (see Data transformations).
Note that Message structure is rarely suitable for direct presentation. In such cases it is beneficial to rearrange the data template to better fit the presentation needs (see Rearranging a data template). If you have to rearrange the data template it is better to do this before you define the data transformation.
Example 16
Message
message
field1
field2
field3
Data template (XML presentation)
<data>
<message>
<field1>SampleData</field1>
<field2>SampleData</field2>
<field3>SampleData</field3>
</message>
</data>
 
If automatic transformation of messages for new designs is enabled, the Message structure is automatically copied to the data template. If not, you can copy the structure manually.
To enable automatic transformation of Messages
1
Select Tools > Options > Defaults > Data transformation.
2
Select Use data template and Automatically transform message.
To manually create a data template from a Message
Select File > Data > Create Data template from message.
In this section
OpenText StreamServe 5.6.2 Updated: 2018-01-26