# Set Cell Value IRIS

This is a pre-built action available under the **Captured Table Element** from the **Desktop Application** using the **IRIS method**. The functionality of this action in Avo Assure is to set or update the value of a specified cell in the captured table cell.

{% hint style="warning" %}
***Note:** For better execution results, capture a constant element using **Ctrl** and **left mouse click**, and select the required area.*
{% endhint %}

### Syntax&#x20;

**Input Value:** `<Row>;<Col>;<Text>;<option>(Optional)>`

| Argument            | Description                                                                                                                                                                                                                                                                     |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| \<Row>(Required)    | Enter the row number of the cell where the value is to be set                                                                                                                                                                                                                   |
| \<Col>(Required)    | Enter the column number of the cell where the value is to be set                                                                                                                                                                                                                |
| \<Text>(Required)   | Provide the text or value to set in the cell                                                                                                                                                                                                                                    |
| \<option>(Optional) | <p>Provide the value as <strong>1.</strong></p><p></p><p><em><strong>Note:</strong> This is used when the table has cells of equal height. This helps IRIS read the table properly when it cannot detect the cell height clearly due to pixelation or unclear display.</em></p> |

**Output Value**

| Argument                                                    | Description                                                                                                          |
| ----------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| \<Dynamic Variable>(Optional);\<Dynamic Variable>(Optional) | This dynamic variable holds the status as **True** (if the value was set successfully), or **False** (if step fails) |

**Example 1**

**Sets the value "SANFRANSISCO" text in the cell at row 2, column 3, specifically in a textbox inside that cell.**

The **Set Cell Value IRIS** action takes the row, column, text from the Input Value column and sets the value accordingly.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FZvn1kNrUd9qN6N5BJpg4%2Fimage.png?alt=media&#x26;token=ef2fae9a-66c7-429f-8df8-ae266ddc4f3f" alt=""><figcaption></figcaption></figure>

**Example 2**

**Sets a value "SANFRANSISCO" text in a specific cell within a table element.**

The **Set Cell Value IRIS** action takes the value from the Input Value column **(e.g., 2;3;SANFRANSISCO;1)**, where **2** is the **row,** **3** is the **column**, **SANFRANSISCO** is the text to be set, and **1** is an optional parameter that defines cell has equal height.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FmVycKNKBp3eV4fUVJuPJ%2Fimage.png?alt=media&#x26;token=65651073-065e-4cd1-a122-742597247338" alt=""><figcaption></figcaption></figure>
