# TABLE

The Table widget displays a table. Each cell can contain text or a number.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcn7LwoJ4nO6icit_j1JdAEnnxsA96XIlSkEbU-r2tTq-YGy7O0ahn2DueYSMZg8jMPCfLxEH0g8JM92jIzBCkcX30Ybc8DuO8FkIQoHTU6liGcGz9yJSYYWdGWiUAKJ93CKzyhDg?key=ArGsMFxOZt6u_AfXAA-94iWG" alt=""><figcaption></figcaption></figure>

## Starting Widget Configuration

To configure the widget, click on the edit icon ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcmIxOieJTlc8fo1mAy0-zMLSjvIZaF4uzm3uAlqS5_2Gw5ZdeFRMU2ENOXmEMQLaIidAseTYETJDjEqu9B0svvJJ_TCwSbbL3v-3AgDHd-iPa4HllVCRDN9JzE1m3x9baoELO2og?key=nCUpXC2iKtVeq12Xi8RnWuyw).

<figure><img src="https://3237142148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FscP4BXwl9ufpJr5mfVln%2Fuploads%2Fgit-blob-2d71dee97d09a78e50c25ae6758c5794394eb176%2FTable.png?alt=media" alt=""><figcaption></figcaption></figure>

A pop-up window “Widget Settings” will open:

<figure><img src="https://3237142148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FscP4BXwl9ufpJr5mfVln%2Fuploads%2Fgit-blob-6169c36894ce708384f36c7fa02619e9794a9fec%2F%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(231).png?alt=media" alt=""><figcaption></figcaption></figure>

Fill in the necessary fields to configure the widget.

## **General Fields**

* \**“Widget Name ”* – a text field that is filled in manually from the keyboard;
* **“Mode”** – a drop-down list where you need to select the mode for creating a query for the widget:

| **Name**                              | **Description**                                                                                                                                                                                                                                                                                                                    |
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Builder Mode](#rezhim-konstruktora)  | Allows you to assemble a query from individual blocks. Each block (Table Merging, Filters, Widget Rows, Group By, Sort, Row Count) has the option to configure the necessary commands for working with data, arithmetic and logical commands, comparison operators.                                                                |
| [Advanced Mode](#rasshirennyi-rezhim) | <p>Allows you to manually enter a query in the SQL field:</p><p><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcd7OIaI1R6U2xJuYuo33WaYxtzln9tYAyEjwgkaFQvmWk9805MgjR88D_8QBjGAHjvMQvGc2LJSshFRdlLNMIMSC0Bnxvufy0eEUv9QIz2KAfRGIeFykHpvaX7g_W6kqH1KqmPQg?key=nCUpXC2iKtVeq12Xi8RnWuyw" alt="" data-size="original"></p> |

* **“Tables”** – a drop-down list with all available database tables;

## **Additional Fields Available for Configuration Only in Builder Mode**

### **Table Merging**

Table merging is necessary to extract data from several related tables and form more complete and informative results.

To compare two tables for subsequent merging, the following operators are used:

| **Name** | **Description**                                                                                                                                    |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| =        | Returns rows from both tables where the values in the specified columns are equal.                                                                 |
| !=       | Returns rows from both tables where the values in the specified columns are not equal.                                                             |
| >        | Returns rows where the value in the specified column from the first table is greater than the value in the specified column from the second table. |
| <        | Returns rows where the value in the specified column from the first table is less than the value in the specified column from the second table.    |

If you need to merge only 2 tables, you must fill in the fields:

1. **“Column”** from the drop-down list;
2. **“Operator”** from the drop-down list;
3. **“Column 2”** from the drop-down list;

For example,

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXciNHglBTDjXxh-ndG_wzNZcXhXND6XrUdgBCYtdVsfMv3TG6lbnmE7WNFThayemZauqrZI8azpsVmnyDFr53uPR-_7fNaoGFk-Hjobbh7QMjwunzzgtQqEHxZbkh_MB37n43DPnA?key=nCUpXC2iKtVeq12Xi8RnWuyw" alt=""><figcaption></figcaption></figure>

If you need to merge more than two tables, you must click the button ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcROZ9y7XZhK1qwKQ5hLnMx37mm7idz56ag4ue9nmrltGiCm-UFL7NI3iN_E4hvVWPnflzHFtiCErCZms5wLZNi1FY5eeteFiTJdp9-Zy1PF4XsdmLbz7YpdWSk8R6ovdrAvfzGGQ?key=nCUpXC2iKtVeq12Xi8RnWuyw), after which you fill in the necessary fields.

If you need to delete the table merging, you must click the button ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcsbV73oVpfuisxBad8hWyyeugetwarRT9Qin_QILnwD9umqNBWbO_ozoH6SbGFnkWDK2RvIW8keI5FkOlIIyyzy5QwrPSso1yRkSuG-5Kt2mo1vMGt0Id0NDy5gvYwIDa5ExuZOA?key=nCUpXC2iKtVeq12Xi8RnWuyw).

### **Filters**

Filters allow you to set conditions for the selected data using comparison operators and logical operators.

To set one condition, you need to fill in the fields:

1. **“Column”** from the drop-down list;
2. **“Operator”** from the drop-down list;
3. **“Value”** manually from the keyboard;

For example,

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcESQzpRUvRZdAMxHUoIII1p7wTfua4vjT0iUyooGLAhmICxiBb7qbQNHKqzbKZApRuiZl_JMRVo-lO8IWZhCghO3l2fju0sa8YjMa5ezF3zNgXop6rlBWBg4oAqWcBRl9mySipdQ?key=nCUpXC2iKtVeq12Xi8RnWuyw" alt=""><figcaption></figcaption></figure>

If you need to combine several conditions into one whole, for example, ((robots.is\_deleted = 0) AND (robots.id > 13)), you must use logical operators. To do this, select the desired operator by clicking on the icon ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXf5KvLHwZJMAKEekEGvTPPxIYVtQHjZGWfT2q8JjIUdDQdSA06PBo1IP04AIcbYBakRwhkUhVD-sKW9jsuk3nkz5Ywch_4C4490VxIIDM4TnUldryGqRtx8FlU36Cs7yQZ5Fty8RQ?key=nCUpXC2iKtVeq12Xi8RnWuyw) to change it to OR, or ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXf62e1PD1G48Sa7XfyhhOgn_81A4M0YGYMbslALy5hbSxgpT6ibxOtBHD1C_Ks5SzrvMmybTuKKtcIShyipyKAi-Dz9A5vI6zTIepF8g4XZXmtNZgAcOfyLjty0GYfxagnxE6l9?key=nCUpXC2iKtVeq12Xi8RnWuyw) to change it to AND. Then click the button ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcAFQBjH14gIfP5ZzErkhIp8i9YMCcDu5YAeWCq8Xy6W4K6J4t2-vTqJgtAW5TNFG50Vkm6jr3LvPF6ly9Cty2Yvk0AcxvBZnnVmRO4lVXOvioRgWTJewQCqeiTZN6CcOAjsT4jDw?key=nCUpXC2iKtVeq12Xi8RnWuyw), after which fill in the necessary fields:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcIYJZ9VjTOJzVfnAxrZdlAqQQ558qlI0bptyMwy5FBzipDgBIkz8TeFzIHSAXt4mQ215oiPVEVnOmMYy_M93Al92Ixcto6FY6tS360cqr2RvL_4RY7rCfGJWHmXBjZcptmC5fRNQ?key=nCUpXC2iKtVeq12Xi8RnWuyw" alt=""><figcaption></figcaption></figure>

If you need to set a complex condition for the Filter, including several brackets, you must click the button ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfSfbBGhG7QVxO9ioVtoXWl8Rmt2U-9B6gKdfw0ai6VOgNahfB7RR8l3UlSXNeavIBlfT96eAhr9XtqT-BJj_Fi-ep4L91DH3ojUXNUBMcPq8aGBs8vUv-FktTvqrVOnLPVdZCK?key=nCUpXC2iKtVeq12Xi8RnWuyw), after which fill in the necessary fields.

If you need to delete a condition, you must click the button ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXd6OAWgEybohnm-V1e2pK4Z5R2yBziiiYj6BJ1ErR-ss_mBXRCxQllIK8ZF9cCs4_1coCLIq1xh_iucJN85kyIwN42FWOxA4wy4AycS4lt-awRGmfkEzeNAzOsRmNT3xbt6utzgog?key=nCUpXC2iKtVeq12Xi8RnWuyw).

### **Widget Rows**

Widget rows are used to specify the columns of data that need to be extracted from the database. They determine what data will be returned in the query results.

To configure Widget Rows, you need to fill in the fields:

1. **“Column”** from the drop-down list;
2. **“Operator”** from the drop-down list;
3. **“Row Name”** manually from the keyboard;

For example,

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdcNclubdHr3t-XMCgO3_e1aV2WJOz73qmI4LnaCecZjFiDo9kL43waypLoOj2xa3ySVRrPersvZWBZ4y9lKTH_a3Ln9WNhcFN31-H_gbPQqp2qvk7nSdou3OOee_-WQDcMpzvF3w?key=nCUpXC2iKtVeq12Xi8RnWuyw" alt=""><figcaption></figcaption></figure>

If you need to display additional data in the legend, you should click the button ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeFhXqnbRswxTKAYx7LnYp-kO4Opn8ZIybkorP4LBC9jNkvphbYUS0BYkkPYvxYub1vP7rmYElV4uoHTg9Ofzw5INlNLUuWyOUXOkj2w0jhJqELB8Jh4iAMwh97fjd5IWR2fk5qFw?key=nCUpXC2iKtVeq12Xi8RnWuyw).

### **Group By**

A field for configuring the process of merging rows of data with the same values in a specific column (or columns) into a single set, allowing aggregate operations to be performed on these groups. To merge data rows, you need to fill in the column field from the drop-down list;

### **Sorting**

Fields for configuring the process of ordering data in the resulting set in a specific order based on the values in one or more columns. To sort in ascending order, you need to enter “ASC” in the “Sort By” field. To sort in descending order, enter “DESC”. Then you need to fill in the “Column” field from the drop-down list;

### **Row Count**

The field is filled in manually from the keyboard or using the counter ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeptwsNfuXeBVsM5ITGuxu3Tk4Y-JS6u91ngfYj8jnBT8RRxSo09Eye1mhEKPaxYQQApQAA4g7ohGinnWFeznpGw9tkFSMqqmQZyL0AzL1jv9f3w_8Se6hCiwAb5JBjy2geuAxR?key=nCUpXC2iKtVeq12Xi8RnWuyw). This field allows you to limit the number of records returned in the query result for building the Dashboard.

## Testing

To ensure that the query is set up correctly, you need to click the button ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcbp8LyKi6t7wwKr6oCoZ7K1bg0aTKcf0j9tsfjgaSwf4hAwVarepSDi_1h6mapWcJVnG_6f2OV41rJuNM5NYM7LC7rlVLZYwX0TqKY3-T7exIoAfQTif6D2hrkSd3bB58_z7CZ?key=nCUpXC2iKtVeq12Xi8RnWuyw), after which a table with data will appear, based on which the Table Dashboard will be built.

To display the Dashboard on the panel, you should click the “OK” button.

To delete all filled data, you should click the “Cancel” button.

Example:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcn7LwoJ4nO6icit_j1JdAEnnxsA96XIlSkEbU-r2tTq-YGy7O0ahn2DueYSMZg8jMPCfLxEH0g8JM92jIzBCkcX30Ybc8DuO8FkIQoHTU6liGcGz9yJSYYWdGWiUAKJ93CKzyhDg?key=ArGsMFxOZt6u_AfXAA-94iWG" alt=""><figcaption></figcaption></figure>

To output information about Robots on the Table Dashboard, you need to enter the data in the corresponding fields in the "Widget Settings" window:

## Builder Mode (Example)

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd1YE5TfbtRcRZXqDdRsaSZeYwC80lDheESVsEolNKLP262GW2dawYIXtwkx0T_jMHv102ds4509gQiWOHnMwOwSnMZm3DvknWuYe2e-oraj7OxxM2ZrzQSblDpQsjE8nI1Dbj8Uw?key=ArGsMFxOZt6u_AfXAA-94iWG" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcV7L2WW4hbHn1FrCvuBBY5cTI_Nj6FhD0u4q4GHUaVGUedMviAQOEsqIj127LbAoADN_4JZgc5ahBWLE3jGI08-fQnRD7jKLO7Aoh57Zz6_mTru1zLmUrMz7W9XNNcrUJvG0BI4w?key=ArGsMFxOZt6u_AfXAA-94iWG" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdtjomaDYICQyOshOiFRywgKzDoD2ogaiwuMB66MNh17CRS9UoXMMTYUmFOXpwdXT9LcG2z_tIwqpKOi1E8mf2SrVukb7SqmN8S8mdnYqERSFvRaJB0tTLfk7WwT2Mioodreh6Fbw?key=ArGsMFxOZt6u_AfXAA-94iWG" alt=""><figcaption></figcaption></figure>

You need to fill in the fields:

**Tables \***

*robots*

**Widget Rows**

<table data-header-hidden><thead><tr><th width="234"></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Column</strong></td><td></td><td><strong>Row Name</strong></td></tr><tr><td><em>robots.guid</em></td><td></td><td><em>id</em></td></tr><tr><td><em>robots.name</em></td><td></td><td><em>name</em></td></tr><tr><td><em>robots.created</em></td><td></td><td><em>created</em></td></tr><tr><td><em>robots.updated</em></td><td></td><td><em>updated</em></td></tr><tr><td><em>robots.description</em></td><td></td><td><em>description</em></td></tr><tr><td><em>robots.local_robot_name</em></td><td></td><td><em>local_name</em></td></tr></tbody></table>

**Group By**

*robots.updated*

**Sorting**

| **Column**       | **Sort By** |
| ---------------- | ----------- |
| *robots.created* | *ASC*       |

**Row Count**

*10*

## Advanced Mode (Example)

You need to fill in the field:

**SQL**

```sql
SELECT
    robots.guid AS id,
    robots.name AS name,
    robots.created AS created,
    robots.updated AS updated,
    robots.description AS description,
    robots.local_robot_name AS local_name
FROM
    robots
GROUP BY robots.updated
ORDER BY robots.created ASC;
LIMIT 10
```


---

# 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.sherparpa.ru/en/sherpa-rpa/sherpa-orchestrator/rabota-v-sherpa-orchestrator/ekrany/obzor/table.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.
