Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Add column Version 5 (Net)

Группа действийAction group: Таблицы Tables

Описание

Данное действие предназначено для добавления столбца в конец таблицы.

Иконка действия

Image Removed

Настройки

...

Таблица

...

Значения, которые будут добавлены.

...

Особые условия использования

При добавлении столбца со значениями вне используемого диапазона  будет отображена ошибка. Если добавлять значения в рамках используемого диапазона, то ошибки не возникнет.

Image Removed

Пример использования 

Задача: имеется таблица в формате CSV

 Image Removed

Необходимо добавить столбец Grade и сохранить таблицу, как новый документ с названием NEW. 

Решение: воспользоваться действиями "Получить таблицу из CSV", "Добавить столбец", "Сохранить таблицу в CSV". 

Реализация:

...

Description

This action is to add a column to the end of the table.

Action icon

Image Added

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Data tableTable for which the action will be performed.Robin.DataTable
Yes
ValuesThe values to be added.Robin.Collection
Yes
ResizeAllow rows to be added to the table depending on the number of values passed.Robin.BooleantrueNo

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.

Image Added


Example of use

Task

There is a table in CSV format.

 Image Added

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

  1. Assemble a robot scheme consisting of actions:
    Image Added
  2. Set the parameters for the ""Get table from CSV" action.
    Image Added
  3. Set the parameters for the "Add column" action. A collection with target values should be added to the "Values" field. Image Added
  4. Set the parameters for the "Table to CSV" action. 
    Image Added
  5. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. 

Image Added

 

A new document is created with a column added to it.

...

Результат:

Программный робот отработал успешно. 

Image Removed

Создан новый документ с добавленным в него столбцом