Master Template Defined VIEWs

With Master Template Defined Views you can combine and filter Text Blocks Lists from KCM Designer to use them with the FORM statement.

The following is a definition of the statement.

DEFINE VIEW Name AS
  FILTER "filter"
  VIEW "view1"
  ...
  VIEW "view_n"

You cannot use variables in the definition of the Master Template Defined View.

The following statement defines a Master Template Defined View and specifies its name. You cannot define Master Template Defined Views.

DEFINE VIEW Name AS ... VIEW "..."

The FILTER keyword is optional and specifies a Filter function that should be used to filter Text Blocks in the Master Template Defined View.

FILTER "filter"

The following statement is required and specifies a View included in the Master Template Defined View. You can repeat this option to create a Model Defined View composed of multiple Views. It is allowed to use previously defined Master Template Defined Views in a Master Template Defined View. The VIEW keyword terminates the definition of the Master Template Defined View.

The FILTER keyword specifies a Filter function used to select Text Blocks from the parent Views. The Filter function is applied whenever the Master Template Defined View is used in a FORM statement, using the actual state of the Data Backbone. If a Master Template Defined View includes one or more other Master Template Defined Views, Text Blocks in these Views are filtered before the filter on the resulting Text Blocks is applied.

The following example command creates a View filtered based on the state Filter function.

DEFINE VIEW StateClauses AS
  FILTER "state"
  VIEW "Clauses"

The following example command combines Views ClauseSet1, Folder\ClauseSet2 and ClauseSet3 into one View. Duplicate Text Blocks are not removed from the resulting Master Template Defined View.

DEFINE VIEW AllClauses AS
  VIEW "ClauseSet1"
  VIEW "Folder\ClauseSet2"
  VIEW "ClauseSet3"

The following example command creates a View that is filtered on the texas Filter function using the StateClauses Master Template Defined View in the preceding example. The resulting Master Template Defined View will contain all Text Blocks from the Clauses View that pass both the state and texas Filter functions.

DEFINE VIEW TexasStateClauses AS
  FILTER "texas"
  VIEW "StateClauses"