История страницы
...
Add row Version 4 (Net)
Группа действийAction group: Таблицы Tables
Описание
Данное действие предназначено для добавления строки в конец таблицы.
Настройки
...
Таблица
...
Значения, которые будут добавлены.
...
Особые условия использования
При добавлении строки со значениями вне используемого диапазона будет отображена ошибка. (Например, добавляем строку с 3 значениями, а в предыдущих строках по 2 значения).
Если добавлять значения в рамках используемого диапазона, то ошибки не возникнет.
Пример использования
Задача: имеется таблица в формате CSV
.
Необходимо добавить строку ниже и сохранить таблицу под названием NEW.
Решение: воспользоваться действиями "Получить таблицу из CSV", "Добавить строку", "Сохранить таблицу в CSV".
Реализация:
...
Description
The action adds a row to the end of the table.
Action icon
Settings
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Data table | Table for which the action will be performed. | Robin.DataTable | Yes | |
Values | The values to be added. | Robin.Collection | Yes | |
Resize | Allow columns to be added to the table depending on the number of values passed. | Robin.Boolean | true | No |
Special conditions of use
When adding a row with values outside the used range, an error will be displayed. (For example, we add a row with 3 values, but the previous rows have 2 values each).
If you add values within the range used, no error will occur.
Example of use
Task
You have a CSV-table.
.
Add a row below and save the table under the name "NEW".
Solution
Use the "Get table from CSV", "Add row", "Table to CSV" actions.
Implementation
- Assemble a robot scheme with the actions:
- Set the "Get table from CSV" action parameters.
- Set the "Add row" action parameters. Add a collection with target values in the "Values" field.
- Set the "Table to CSV" action parameters.
- Click "Start" in the top panel.
Result
The program robot completed successfully.
The row was added to the table.
...
Результат:
Программный робот отработал успешно.
Строка добавлена в таблицу.