Extra Queries

Previous Next

In addition to data retrieved by its main query, an info box may show data from extra queries. There are many use cases for extra queries. Here are two examples:

The extra query performs a calculation using related information from other tables. You can show the calculation result in a field of the info box where the extra query is defined.

The extra query finds out something from other tables that you need to make a GUI control (a tab, a button...) sensitive or insensitive in the info box where the extra query is defined.

A single extra query definition may result in one or multiple displayed or computed or hidden fields.

If you use more than one extra query in the same info box, execution order between extra queries cannot be specified. For this reason, you cannot refer to one extra query in the SQL statement of another. To control execution order, use Decisions instead.

Extra Queries are also executed when you enter Query Mode. If a No Action has been specified for the Extra Query (see the first 2 examples in this help topic), then this No action will be performed when you enter Query Mode.

TIP: To create an extra field in your info box that represents joined data from a parent table or grandparent table, insert a joined column instead.

 

 

collapseHow to add an Extra Query
collapseExtra Query Example 1: Dynamic Background Color Change
collapseExtra Query Example 2: Child Box Background Color Dependent on Parent Data
collapseExtra Queries for related information
collapseComputed values in Extra Queries

 

 

See also

Underlying queries

Info Boxes

Joined Columns