История страницы
...
Add column Version 5 (Net)
Группа действийAction group: Таблицы Tables
Описание
Данное действие предназначено для добавления столбца в конец таблицы.
Иконка действия
Настройки
...
Таблица
...
Значения, которые будут добавлены.
...
Особые условия использования
При добавлении столбца со значениями вне используемого диапазона будет отображена ошибка. Если добавлять значения в рамках используемого диапазона, то ошибки не возникнет.
Пример использования
Задача: имеется таблица в формате CSV
Необходимо добавить столбец Grade и сохранить таблицу, как новый документ с названием NEW.
Решение: воспользоваться действиями "Получить таблицу из CSV", "Добавить столбец", "Сохранить таблицу в CSV".
Реализация:
...
Description
This action is to add a column 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 rows to be added to the table depending on the number of values passed. | Robin.Boolean | true | No |
Special conditions of use
If you add a column with values outside the range used, an error will be displayed. If you add values within the used range, no error will occur.
Example of use
Task
There is a table in CSV format.
You need to add a Grade column and save the table as a new document named NEW.
Solution
Use the actions "Get table from CSV", "Add column", "Table to CSV".
Implementation
- Assemble a robot scheme consisting of actions:
- Set the parameters for the ""Get table from CSV" action.
- Set the parameters for the "Add column" action. A collection with target values should be added to the "Values" field.
- Set the parameters for the "Table to CSV" action.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully.
A new document is created with a column added to it.
...
Результат:
Программный робот отработал успешно.
Создан новый документ с добавленным в него столбцом