Working with block elements


When a Layer or Set is displayed in the Free Definition window with one basic All objects (with sub-objects) matching text box like this (this can be achieved by right clicking the layer or set and selecting Add selection criteria):

You can then right click the All objects text and use the available options to create more complex selection criteria:

Each option is explained below:

Add property block
Will display the Properties dialog box:

This dialog box enables you to add a selection criterion based on any of the items in the Types & Properties panel and using a value.

Please note:

Like option and wildcards

When entering search strings using the LIKE option, a simple LIKE comparison is executed to find the matching objects. As such, you can use the following characters as wildcards:

- % (percent)
- this wildcard will match any string of characters, even empty characters
- _ (underscore)
- this wildcard will match any single character The wildcard characters % and _ cannot be escaped, therefore you cannot search explicitly for objects that contain these characters in their name. As such, you may find that when using the above wildcards, objects are matched which you do not require. If this is the case, please instead use the MATCH option with a Regular Expression to achieve what you need.

Regular Expressions

You can use Regular Expressions in the Values list when working with the Match option only . Please see Using Regular Expressions for more information.

Add member-of block
Enables you to add a selection criterion to the current Set based on the criteria defined in other sets (standard and generic). I.e. you can define a Generic Set "X" and include the set (and its criteria) in one action in the current set.

A dialog box will be displayed prompting you to choose the Set you require.

In the example below we have defined a Generic Set to detect all SQL Views. We have then added this Generic Set to the current Set via the member-of option - the current Set will now take into account all SQL Views. A blue arrow is also displayed between the sets to indicate that one depends on the other for its criteria.

Add excluded-from block
Enables you to add a selection criterion to the current Set based on the criteria defined in other sets (standard and generic). I.e. you can define criteria for Generic Set "X" and Exclude the set (and its criteria) in one action in the current set.

A dialog box will be displayed prompting you to choose the Set you require.

In the example below we have defined a Generic Set to detect all SQL Views. We have then added this Generic Set to the current Set via the excluded-from option - the current Set will now ignore all SQL Views. A blue arrow is also displayed between the sets to indicate that one depends on the other for its criteria.

Add caller-of block
Enables you to add a selection criterion based on objects that are callers of objects defined in a further sub-criterion (or criteria):

  • Define the link depth (enter manually). Depth indicates how many links back you want to fetch.
  • Then choose either:
    • MembershipBelongs To - these links represent interactions between parent and child object
    • Specific link type > You can choose any combination of specific link types - in this case, any matching link that is found will be included.

Once created, you can then add further blocks as required by right clicking and selecting the appropriate block type. This will be represented as follows when multiple links are selected:

- It is not possible to mix Membership link types with Specific Link Types: it is one or the other.
- Only one call depth (i.e the one chosen) will apply to all link types.

Add callee-of block
Enables you to add a selection criterion based on objects that are callees of objects defined in a further sub-criterion (or criteria). The process is identical to that described above for the caller-of block:

Add OR-combination block
Enables you to add a selection criterion based on OR conditions - i.e. you can enter any number of sub-criteria, but only one has to match for the object to be assigned to the current Layer:

Once the initial OR criterion is defined, click the criterion to add further sub-criteria.

Note that if you are working with block elements, the CAST Transaction Configuration Center will notify you when a layer or set is not fully defined by using a red warning:


CAST Website