Context (query)

In addition to their configuration, most query components require objects on which the operation (query, filter, sorting, ...) is executed.

The objects on which the operation is performed are determined (without context query) as follows:

  • If the query has no subqueries, then the current objects of the context under which the query is executed are used directly as input to the query.

  • If the query has subqueries, then the results of the subqueries are used as the input of the query.

See also: Chapter Nested queries.

With a query of type Context objects can be determined as input of the operation as follows:

  • If the query component is to receive as input both the results of its subcomponents and the objects from the current context: in the context query properties, reference at least one object that is to serve as input to the context query. When the query is executed, the context of an object must also be open. When the query is tested, an object must also be selected in the model overview.

  • If the query component is to be executed only on fixed model objects: In the context query properties, reference at least one object that is to serve as the input of the context query. When the query is executed, no object context must be open. When the query is tested, no object must be selected in the model overview.
    A fixed context is particularly suitable for using a query as a Web service. This prevents objects from being passed as the query input when the service is called.

Configuration:

Property

Description

Queries

The Queries property displays the query components that have been configured for the query. The result of the queries is used as input for the execution of this query.
If no queries are created, the result is obtained directly from the current context.

You also have the option here to configure new queries via the text box or the buttons to the right of the text box.

Objects

Reference any model objects under Objects to return them as results and use them as input for the parent query components. If no objects are referenced here, then the objects of the context are returned.

While the query is being executed, an object may also be open that is returned as an additional result of the parent query component.

Use parent context

Set here whether the context of the deposited object or that of a higher level should be used.

Variables

You can activate the enabled attributes of a query and condition in the Variables property so that they can be changed by users at the time of execution.

See also: Chapter Variables.