
76 vFoglight
Web Component Guide
Overview of Query Definitions
Queries let you select a set of data objects of the same type. Pages and views extract and
use data from the queries for values and context settings.
Each query defines:
• The data-source type
• The specific data source
• The path of the query (the root location from which the query searches)
• A type of object to select
Optionally, a query can search down under the root, drilling down until it finds objects
of the desired type. In addition, it can restrict the objects it finds using conditions (or
restricts them to the first N objects), it can sort the objects, and it can aggregate the
objects into maximums, minimums, averages, and other aggregates.
Queries retrieve a list of data objects of the same data type (such as Host or AppServer).
For example, a query on the Host data type may return a list that contains all the
available Host data objects from the data source.
Queries always return a list of data objects. Even when there is only one object found
that satisfies the query, the result is a one-element list. A query that does not find any
objects returns an empty list.
Just like Views, Relevant and Allowed Roles can be set on Query Definitions. These are
taken into account when filtering Root Queries by role in the Data Browser, a portal or a
report builder. For more information, see “Roles in Query Definitions” on page 78.
Creating a Query in vFoglight
You begin the process of creating a query by clicking the Add button on the Queries tab
of the Module Contents pane. A New Query Dialog appears with these choices:
•Blank Query
• Copy of
Comentarios a estos manuales