# Element tree structure

The element tree structure is used to display all available element properties within a project / subproject. It is drawn from the project template and contains all element properties, including custom defined fields.

<figure><img src="http://aquawiki.andagon.com/pictures/drex_element_tree_structure_2_custom.png" alt=""><figcaption></figcaption></figure>

Within the hierarchical data structure tree, there are lists, fields, and calculated fields. For each list within the hierarchical structure, a band can be defined to iterate through its elements. The direct usage of a sub-list in a band only returns its topmost element, since it does not automatically iterate through the list, and is therefore not recommended. Calculated fields are fields that return a value based on a customizable function. For example, a custom field can return 1 if a test has passed and 0 if not. This practice enables you to count all passed tests, which would cause a lot of scripting work otherwise.&#x20;

### **Related Elements** <a href="#related_elements" id="related_elements"></a>

All related elements are shown in the dependency view of an element. For example, related elements of a test scenario are the test cases it contains. You can access this information and iterate through the related elements in the report designer.

&#x20;&#x20;

<figure><img src="http://aquawiki.andagon.com/pictures/drex_element_tree_structure_2_custom_2.png" alt=""><figcaption></figcaption></figure>

### **Example of integrating the data variables into the report** <a href="#example_of_integrating_the_data_variables_into_the_report" id="example_of_integrating_the_data_variables_into_the_report"></a>

In the example below, we visually indicated how the field list elements are related to the report layout designer.&#x20;

<figure><img src="http://aquawiki.andagon.com/pictures/drex_element_tree_structure_2_custom_3.png" alt=""><figcaption></figcaption></figure>

### **Calculated Fields** <a href="#calculated_fields" id="calculated_fields"></a>

The values of calculated fields are determined by a formula and dynamically calculated during the creation of the report.

&#x20;

<figure><img src="http://aquawiki.andagon.com/pictures/drex_element_tree_structure_2_custom_4.png" alt=""><figcaption></figcaption></figure>

An example expression which could define the value of a calculated field:

```csharp
Iif ([LastExecutionStatusInvariant] == 'Passed', 1, 0)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aqua-cloud.io/documentation/desktop-client/reporting/element-tree-structure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
