Template

For each context message two Template elements must be present. A Template element has this attribute:

Attribute Description
condition

The runtime condition that applies for sending a context message according this template. These values are allowed:

  • gen:data – use this value for the template that must be used for sending data.
  • gen:empty – use this value for the template that must be used to send an empty message (to clear the web part).

A Template element has this sub element:

Element Description
_Block_

A block of XML elements. At least one block must be present. This block will be repeated with data for each context message of the same context message type that must be sent. For example if multiple records are selected or if the same context message type must be sent for a referenced table. An optional block can be added for XML elements that only must occur once in the context message.

For the content of the _Block_ element, see the example.

Example:
<Template condition="gen:data">
		<_Block_>
				<...>
		</_Block_>
</Template>