AppliesTo

For each context message one AppliesTo element must be present. An AppliesTo element has these sub elements:

Element

Description

Table

Filter

Domain

Filter

TableField

Filter

The Table element describes the tables to which the context message applies. The Filter restricts the tables. The Domain element describes the domain that must be present in the table to satisfy the criteria for the context message. The Filter restricts the domains. The TableField element describes the field that must be present in the table to satisfy the criteria for the context message.

Note: when restricting elements are absent, the table matches the criteria. There can be multiple Table, Domain and TableField elements. Between these elements the OR operator applies.

For the table filter wildcards can be used at the end of the table name.

Examples:

This context message applies to all tables.
<AppliesTo>
  <Table/>
</AppliesTo>
This context message applies to all tables of package "wh" and module "inh".
<AppliesTo>
  <Table>
    <Filter>whinh*</Filter>
  </Table>
</AppliesTo>
This context message applies to all tables of "whinh" that have a field with domain "tcrefa".
<AppliesTo>
  <Table>
    <Filter>whinh*</Filter>
    <Domain>
      <Filter>tcrefa</Filter>
    </Domain>
   </Table>
</AppliesTo>
This context message applies to all tables of "whinh" that have a field with domain "tcrefa" and field name "cpro"
<AppliesTo>
  <Table>
    <Filter>whinh*</Filter>
    <Domain>
      <Filter>tcrefa</Filter>
      <TableField>
        <Filter>cpro</Filter>
      </TableField>
    </Domain>
  </Table>
</AppliesTo>
This context message applies to all tables that have a field with domain "tcglat".
<AppliesTo>
  <Table>
    <Filter>*</Filter>
    <Domain>
      <Filter>tcglat</Filter>
    </Domain>
  </Table>
</AppliesTo>
This context message applies to all tables in modules "whinh" and "whwmd" that have a field with domain "tcglat".
<AppliesTo>
  <Table>
    <Filter>whinh*</Filter>
    <Domain>
      <Filter>tcglat</Filter>
    </Domain>
 </Table>
 <Table>
    <Filter>whwmd*</Filter>
    <Domain>
      <Filter>tcglat</Filter>
    </Domain>
 </Table>
</AppliesTo>
This context message applies to all tables that have a field with domain "tcglat" or "tcglon".
<AppliesTo>
  <Table>
    <Filter>*</Filter>
    <Domain>
      <Filter>tcglat</Filter>
    </Domain>
    <Domain>
      <Filter>tcglon</Filter>
    </Domain>
  </Table>
</AppliesTo>